Projet

Général

Profil

0001-family-fix-empty-or-null-pay_limit_date-export-45714.patch

Thomas Noël, 03 août 2020 23:54

Télécharger (129 ko)

Voir les différences:

Subject: [PATCH] family: fix empty or null pay_limit_date export (#45714)

 passerelle/apps/family/models.py |   2 +-
 tests/data/family_data.zip       | Bin 75699 -> 77559 bytes
 2 files changed, 1 insertion(+), 1 deletion(-)
passerelle/apps/family/models.py
114 114
        'no_online_payment_reason': i.no_online_payment_reason,
115 115
        'has_pdf': i.has_pdf
116 116
    }
117
    if now().date() > i.pay_limit_date:
117
    if i.pay_limit_date and now().date() > i.pay_limit_date:
118 118
        invoice['online_payment'] = False
119 119
        invoice['no_online_payment_reason'] = 'past-due-date'
120 120
    return invoice