Ignore:
Timestamp:
10 Jul 2022, 11:47:16 (2 years ago)
Author:
Henrik Bettermann
Message:

Disable applicant balance payments in base package completely.

File:
1 edited

Legend:

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

    r17016 r17018  
    5555    #: over to the students section.
    5656    ADDITIONAL_FILES = (('Test File','testfile'),)
     57   
     58    # A list of states which enable balance payments (not used in base package)
     59    BALANCE_PAYMENT_STATES = ()
    5760
    5861    def setPaymentDetails(self, container, payment, applicant):
     
    9396        as selected by the applicant.
    9497        """
    95         if applicant.state not in (PAID, ADMITTED, SUBMITTED, PROCESSED):
     98        if applicant.state not in self.BALANCE_PAYMENT_STATES:
    9699            return _('Wrong state.'), None
    97100        p_item = u'Balance'
Note: See TracChangeset for help on using the changeset viewer.