Changeset 16772 for main


Ignore:
Timestamp:
2 Feb 2022, 10:24:05 (3 years ago)
Author:
Henrik Bettermann
Message:

Option selected in "Type of Order" should determine Payment option. For example, if it is Original, then only the appropriate payment options should be available for selection from transcript charge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py

    r16771 r16772  
    439439        if applicant.collected and applicant.order != 'o':
    440440            raise Invalid(_("If you have collected transcript before, type of order must be 'original'."))
     441        if applicant.order == 'o' and applicant.charge.startswith('cert_'):
     442            raise Invalid(_("You've selected the wrong transcript charge."))
     443        if applicant.order == 'c' and not applicant.charge.startswith('cert_'):
     444            raise Invalid(_("You've selected the wrong transcript charge."))
    441445
    442446
Note: See TracChangeset for help on using the changeset viewer.