Changeset 15553 for main


Ignore:
Timestamp:
19 Aug 2019, 19:32:09 (5 years ago)
Author:
Henrik Bettermann
Message:

Successful applicant payments do trigger 'approve' transition only
if applicant is in state 'started' and either p_category is 'application' or
applicant is special.

Add 'app_balance' payment category.

Location:
main/waeup.kofa/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r15548 r15553  
    441.6.1.dev0 (unreleased)
    55=======================
     6
     7* Successful applicant payments do trigger 'approve' transition only
     8  if applicant is in state 'started' and either p_category is 'application' or
     9  applicant is special.
    610
    711* Allow to add applicants containers with a number instead of entrance year
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py

    r15395 r15553  
    4545        """Process applicant after payment was approved.
    4646        """
    47         if not (self.__parent__.special and self.__parent__.state == PAID):
     47        if self.__parent__.state != PAID \
     48            and (self.p_category == 'application' or self.__parent__.special):
    4849            wf_info = IWorkflowInfo(self.__parent__)
    4950            try:
     
    6061        """Process applicant after payment was made.
    6162        """
    62         if not (self.__parent__.special and self.__parent__.state == PAID):
     63        if self.__parent__.state != PAID \
     64            and (self.p_category == 'application' or self.__parent__.special):
    6365            wf_info = IWorkflowInfo(self.__parent__)
    6466            try:
     
    6870                return 'danger', msg, log
    6971        log = 'successful payment: %s' % self.p_id
    70         msg = _('Payment successfully completed. Kindly submit form for processing.')
     72        msg = _('Payment successfully completed. Kindly submit application for processing.')
    7173        flashtype = 'success'
    7274        return flashtype, msg, log
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py

    r15285 r15553  
    498498            DuplicationError, self.processor.addEntry, payment2,
    499499            dict(applicant_id=self.applicant2.applicant_id, p_id='p456'), self.app)
     500        # But we can add a ticket with another p_category.
     501        payment2.p_category = 'app_balance'
     502        self.processor.addEntry(
     503            payment2, dict(applicant_id=self.applicant2.applicant_id, p_id='p456'),
     504            self.app)
     505        self.assertEqual(len(self.applicant2.keys()),2)
     506        self.assertEqual(self.applicant2['p456'].p_id, 'p456')
    500507
    501508    def test_checkConversion(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r15476 r15553  
    181181        'gown': 'Gown Hire Fee',
    182182        'application': 'Application Fee',
     183        'app_balance': 'Application Fee Balance',
    183184        'transcript': 'Transcript Fee',
    184185        'late_registration': 'Late Course Registration Fee'
Note: See TracChangeset for help on using the changeset viewer.