From 2a71cad3f0504abb77cc69be3618d8e3607859d5 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 28 Oct 2015 15:51:39 +0100 Subject: [PATCH] teamnet_axel: set invoice payment limit date to next day (#8813) --- passerelle/contrib/teamnet_axel/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passerelle/contrib/teamnet_axel/utils.py b/passerelle/contrib/teamnet_axel/utils.py index 93ed2a7..b58284a 100644 --- a/passerelle/contrib/teamnet_axel/utils.py +++ b/passerelle/contrib/teamnet_axel/utils.py @@ -1,4 +1,4 @@ -from datetime import datetime +from datetime import datetime, timedelta from decimal import Decimal def normalize_invoice(invoice, family_id, historical=False): @@ -10,7 +10,7 @@ def normalize_invoice(invoice, family_id, historical=False): invoice['has_pdf'] = invoice['FPDF'] == 'O' invoice['created'] = datetime.strptime(invoice['FEMISSION'], '%d/%m/%Y') invoice['label'] = invoice['FLIBELLE'] - invoice['pay_limit_date'] = datetime.strptime(invoice['FECHEANCE'], '%d/%m/%Y') + invoice['pay_limit_date'] = datetime.strptime(invoice['FECHEANCE'], '%d/%m/%Y') + timedelta(days=1) if historical: invoice['online_payment'] = False else: -- 2.6.2