Correct payee field: creditor instead of issuer
This commit is contained in:
parent
7ce1a81caa
commit
caeb314e12
1 changed files with 6 additions and 5 deletions
11
tab
11
tab
|
@ -44,10 +44,11 @@ def balance_assertion(balance):
|
|||
|
||||
|
||||
def formatted_transaction(transaction, me, balance_after=None):
|
||||
issuer = transaction["issuer"]
|
||||
debtor = transaction["debtor"]
|
||||
date = transaction["time"][:10]
|
||||
amount = formatted_price(transaction["amount"])
|
||||
issuer = transaction["issuer"]
|
||||
debtor = transaction["debtor"]
|
||||
creditor = transaction["creditor"]
|
||||
date = transaction["time"][:10]
|
||||
amount = formatted_price(transaction["amount"])
|
||||
|
||||
message = (
|
||||
transaction["message"].replace("1 ", "").replace(" and ", " en ")
|
||||
|
@ -65,7 +66,7 @@ def formatted_transaction(transaction, me, balance_after=None):
|
|||
message = f"Zeus WPI | {message}"
|
||||
else:
|
||||
to_account = FOOD_ACCOUNT
|
||||
message = f"{issuer} | {message}"
|
||||
message = f"{creditor} | {message}"
|
||||
|
||||
to_line = f"{to_account} {amount}"
|
||||
from_line = f"tab {assertion}"
|
||||
|
|
Loading…
Reference in a new issue