Projet

Général

Profil

0001-teamnet_axel-set-invoice-payment-limit-date-to-next-.patch

Serghei Mihai (congés, retour 15/05), 28 octobre 2015 16:11

Télécharger (1,24 ko)

Voir les différences:

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(-)
passerelle/contrib/teamnet_axel/utils.py
1
from datetime import datetime
1
from datetime import datetime, timedelta
2 2
from decimal import Decimal
3 3

  
4 4
def normalize_invoice(invoice, family_id, historical=False):
......
10 10
    invoice['has_pdf'] = invoice['FPDF'] == 'O'
11 11
    invoice['created'] = datetime.strptime(invoice['FEMISSION'], '%d/%m/%Y')
12 12
    invoice['label'] = invoice['FLIBELLE']
13
    invoice['pay_limit_date'] = datetime.strptime(invoice['FECHEANCE'], '%d/%m/%Y')
13
    invoice['pay_limit_date'] = datetime.strptime(invoice['FECHEANCE'], '%d/%m/%Y') + timedelta(days=1)
14 14
    if historical:
15 15
        invoice['online_payment'] = False
16 16
    else:
17
-