Ignore:
Timestamp:
1 Nov 2015, 14:12:27 (9 years ago)
Author:
Henrik Bettermann
Message:

Configure new PAYMENT_TYPEs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r12975 r13375  
    8585                return
    8686        if PAYMENT_TYPE not in ('SCHOOL-FEE-RETURNING', 'SCHOOL-FEE-NEW',
    87             'ACCEPTANCE-FEE', 'APPLICATION-FEE', 'LATE-REGISTRATION'):
     87            'ACCEPTANCE-FEE', 'APPLICATION-FEE', 'LATE-REGISTRATION',
     88            'AAU-STUDENT-WELFARE-ASSURANCE','HOSTEL-ACCOMMODATION-FEE',
     89            'AAU-LAPEL-FILE-FEE','MATRICULATION-GOWN-FEE','CONCESSIONAL-FEE',
     90            'STUDENTS-UNION-DUES','MEDICAL-STUDENT-ASSURANCE-FEE'):
    8891            self.output = ERROR_PART1 + 'Invalid PAYMENT_TYPE' + ERROR_PART2
    8992            return
     
    140143        if PAYMENT_TYPE == 'LATE-ADMISSION-PROCESSING' \
    141144            and not results[0].p_category == 'late_registration':
     145            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
     146            return
     147        if PAYMENT_TYPE == 'AAU-STUDENT-WELFARE-ASSURANCE' \
     148            and not results[0].p_category == 'welfare':
     149            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
     150            return
     151        if PAYMENT_TYPE == 'HOSTEL-ACCOMMODATION-FEE' \
     152            and not results[0].p_category == 'hostel_maintenance':
     153            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
     154            return
     155        if PAYMENT_TYPE == 'AAU-LAPEL-FILE-FEE' \
     156            and not results[0].p_category == 'lapel':
     157            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
     158            return
     159        if PAYMENT_TYPE == 'MATRICULATION-GOWN-FEE' \
     160            and not results[0].p_category == 'matric_gown':
     161            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
     162            return
     163        if PAYMENT_TYPE == 'CONCESSIONAL-FEE' \
     164            and not results[0].p_category == 'concessional':
     165            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
     166            return
     167        if PAYMENT_TYPE == 'STUDENTS-UNION-DUES' \
     168            and not results[0].p_category == 'union':
     169            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
     170            return
     171        if PAYMENT_TYPE == 'MEDICAL-STUDENT-ASSURANCE-FEE' \
     172            and not results[0].p_category == 'medical':
    142173            self.output = ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2
    143174            return
Note: See TracChangeset for help on using the changeset viewer.