Correct payee field: creditor instead of issuer

This commit is contained in:
Midgard 2021-09-09 19:30:02 +02:00
parent 7ce1a81caa
commit caeb314e12
Signed by: midgard
GPG key ID: 511C112F1331BBB4

3
tab
View file

@ -46,6 +46,7 @@ def balance_assertion(balance):
def formatted_transaction(transaction, me, balance_after=None):
issuer = transaction["issuer"]
debtor = transaction["debtor"]
creditor = transaction["creditor"]
date = transaction["time"][:10]
amount = formatted_price(transaction["amount"])
@ -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}"