From bea12cab76da403e473498aea0b4aaf723a332d0 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 3 Apr 2020 20:09:01 +0200 Subject: [PATCH 4/6] lingo: use bank_transaction_date instead of end_date when possible (#41323) --- combo/apps/lingo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/apps/lingo/models.py b/combo/apps/lingo/models.py index ff930e39..763f1cfb 100644 --- a/combo/apps/lingo/models.py +++ b/combo/apps/lingo/models.py @@ -503,7 +503,7 @@ class Transaction(models.Model): for item_id in items.split(','): try: remote_item = regie.get_invoice(user=self.user, invoice_id=item_id) - regie.pay_invoice(item_id, self.order_id, self.end_date) + regie.pay_invoice(item_id, self.order_id, self.bank_transaction_date or self.end_date) except Exception: to_be_paid_remote_items.append(item_id) logger.exception(u'unable to notify payment for remote item %s from transaction %s', -- 2.24.0