Skip to content
Snippets Groups Projects
Commit 91441a9c authored by Daniele Nicolodi's avatar Daniele Nicolodi
Browse files

orders: Add quirks to account assignments

parent 8efd35d2
No related branches found
No related tags found
No related merge requests found
......@@ -192,6 +192,8 @@ def build_account_name(meta, remove=False):
keys = 'cost-center', 'funds-center', 'fund', 'psp'
get = meta.pop if remove else meta.get
account = ':'.join(filter(None, (get(key, None) for key in keys)))
# Quirks
if account == '4300:4300:HH': account = '4300:4300'
return 'Assets:PTB:' + account if account else None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment