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

11
tab
View file

@ -44,10 +44,11 @@ def balance_assertion(balance):
def formatted_transaction(transaction, me, balance_after=None): def formatted_transaction(transaction, me, balance_after=None):
issuer = transaction["issuer"] issuer = transaction["issuer"]
debtor = transaction["debtor"] debtor = transaction["debtor"]
date = transaction["time"][:10] creditor = transaction["creditor"]
amount = formatted_price(transaction["amount"]) date = transaction["time"][:10]
amount = formatted_price(transaction["amount"])
message = ( message = (
transaction["message"].replace("1 ", "").replace(" and ", " en ") transaction["message"].replace("1 ", "").replace(" and ", " en ")
@ -65,7 +66,7 @@ def formatted_transaction(transaction, me, balance_after=None):
message = f"Zeus WPI | {message}" message = f"Zeus WPI | {message}"
else: else:
to_account = FOOD_ACCOUNT to_account = FOOD_ACCOUNT
message = f"{issuer} | {message}" message = f"{creditor} | {message}"
to_line = f"{to_account} {amount}" to_line = f"{to_account} {amount}"
from_line = f"tab {assertion}" from_line = f"tab {assertion}"