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):
|
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}"
|
||||||
|
|
Loading…
Reference in a new issue