Changeset - f2c869d783f7
[Not reviewed]
0 1 0
Brett Smith - 6 years ago 2017-12-27 16:51:14
brettcsmith@brettcsmith.org
hooks.add_entity: Add a corp_entity from a corporation variable.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
import2ledger/hooks/add_entity.py
Show inline comments
...
 
@@ -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)
0 comments (0 inline, 0 general)