Projet

Général

Profil

0001-check-payment-limit-for-an-online-payable-invoice-83.patch

Serghei Mihai (congés, retour 15/05), 23 septembre 2015 09:39

Télécharger (1,21 ko)

Voir les différences:

Subject: [PATCH] check payment limit for an online payable invoice (#8321)

 passerelle/contrib/teamnet_axel/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
passerelle/contrib/teamnet_axel/utils.py
7 7
    invoice['id'] = '%s-%s' % (family_id, invoice['NOFACTURE'])
8 8
    invoice['display_id'] = invoice['NOFACTURE']
9 9
    invoice['has_pdf'] = invoice['FPDF'] == 'O'
10
    invoice['online_payment'] = Decimal(invoice['RESTEAPAYER']) != 0
11 10
    invoice['created'] = datetime.strptime(invoice['FEMISSION'], '%d/%m/%Y')
12 11
    invoice['label'] = invoice['FLIBELLE']
13 12
    invoice['pay_limit_date'] = datetime.strptime(invoice['FECHEANCE'], '%d/%m/%Y')
13
    invoice['online_payment'] = Decimal(invoice['RESTEAPAYER']) != 0 or invoice['pay_limit_date'] >= datetime.today()
14 14
    return invoice
15 15

  
16 16
def normalize_person(person):
17
-