Projet

Général

Profil

0004-lingo-use-transaction_date-instead-of-end_date-when-.patch

Benjamin Dauvergne, 04 avril 2020 12:04

Télécharger (1,06 ko)

Voir les différences:

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(-)
combo/apps/lingo/models.py
503 503
        for item_id in items.split(','):
504 504
            try:
505 505
                remote_item = regie.get_invoice(user=self.user, invoice_id=item_id)
506
                regie.pay_invoice(item_id, self.order_id, self.end_date)
506
                regie.pay_invoice(item_id, self.order_id, self.transaction_date or self.end_date)
507 507
            except Exception:
508 508
                to_be_paid_remote_items.append(item_id)
509 509
                logger.exception(u'unable to notify payment for remote item %s from transaction %s',
510
-