summaryrefslogtreecommitdiff
path: root/postgresqleu/invoices
diff options
context:
space:
mode:
authorMagnus Hagander2020-04-04 13:41:43 +0000
committerMagnus Hagander2020-04-04 13:43:56 +0000
commit48859d79e13ab762dceed76066ea8cb005bc29b5 (patch)
treed71edb8d631e1c9d9f0ce19acce5050cf6ac02df /postgresqleu/invoices
parentf05f5a6501941792e51143a28ab013eaa00ce6d2 (diff)
Store id instead of internalname of payment method for bank transfers
Internal names can change, and since this field is only ever used internally or in debugging anyway, it's better to store the id.
Diffstat (limited to 'postgresqleu/invoices')
-rw-r--r--postgresqleu/invoices/backendviews.py2
-rw-r--r--postgresqleu/invoices/util.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/invoices/backendviews.py b/postgresqleu/invoices/backendviews.py
index c534561c..3265ba8b 100644
--- a/postgresqleu/invoices/backendviews.py
+++ b/postgresqleu/invoices/backendviews.py
@@ -379,7 +379,7 @@ def _flag_invoices(request, trans, invoices, pm, fee_account):
(status, _invoice, _processor) = manager.process_incoming_payment_for_invoice(
invoice,
invoice.total_amount,
- "Bank transfer from {0} with id {1}, manually matched".format(trans.method.internaldescription, trans.methodidentifier),
+ "Bank transfer from method {0} with id {1}, manually matched".format(trans.method.id, trans.methodidentifier),
fee,
pm.config('bankaccount'),
fee_account and fee_account.num,
diff --git a/postgresqleu/invoices/util.py b/postgresqleu/invoices/util.py
index 5080bf62..13505f43 100644
--- a/postgresqleu/invoices/util.py
+++ b/postgresqleu/invoices/util.py
@@ -863,7 +863,7 @@ def register_bank_transaction(method, methodidentifier, amount, transtext, sende
(status, _invoice, _processor) = manager.process_incoming_payment_for_invoice(
invoice,
amount,
- "Bank transfer from {0} with id {1}".format(method.internaldescription, methodidentifier),
+ "Bank transfer from method {0} with id {1}".format(method.id, methodidentifier),
0, # No fees on bank transfers supported
pm.config('bankaccount'),
0, # No fees, so no fees account