From cbb7de200557e35dc1955b025d3fbd5b5678ca53 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 3 Apr 2020 20:09:01 +0200 Subject: [PATCH 4/5] lingo: use 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 284b49cc..fafae1ae 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.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