hooks.add_entity: Add a corp_entity from a corporation variable.
This commit is contained in:
parent
82e4bf5bd8
commit
f2c869d783
1 changed files with 2 additions and 0 deletions
|
@ -68,3 +68,5 @@ class AddEntityHook:
|
|||
def run(self, data):
|
||||
if ('payee' in data) and ('entity' not in data):
|
||||
data['entity'] = self._name2entity(data['payee'], 1)
|
||||
if ('corporation' in data) and ('corp_entity' not in data):
|
||||
data['corp_entity'] = self._name2entity(data['corporation'], 0)
|
||||
|
|
Loading…
Reference in a new issue