Ignore:
Timestamp:
17 Mar 2021, 20:29:00 (4 years ago)
Author:
Henrik Bettermann
Message:

Special applicants can add a payment ticket before saving the form. Take at least care that the total amount can be determined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py

    r16242 r16415  
    7979                fee_name = applicant.special_application + '_fee'
    8080                payment.amount_auth = getattr(session_config, fee_name, None)
    81                 if payment.amount_auth in (0.0, None):
    82                     return _('Amount could not be determined.')
    8381                payment.p_category = applicant.special_application
     82            if payment.amount_auth in (0.0, None):
     83                return _('Amount could not be determined. Have you saved the form?')
    8484            return
    8585        payment.p_category = 'application'
Note: See TracChangeset for help on using the changeset viewer.