0001-check-payment-limit-for-an-online-payable-invoice-83.patch
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 |
- |