Changeset 18057


Ignore:
Timestamp:
9 Apr 2025, 10:10:39 (5 days ago)
Author:
Henrik Bettermann
Message:

Add reg2sandwich payment category.

Location:
main/waeup.fceokene/trunk/src/waeup/fceokene
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/browser.py

    r16008 r18057  
    8585        xmldict['institution_item_name'] = self.category
    8686        xmldict['institution_name'] = INSTITUTION_NAME
    87         if self.context.p_category in ('schoolfee', 'third_semester'):
     87        if self.context.p_category in ('schoolfee', 'third_semester', 'reg2sandwich'):
    8888            self.pay_item_id = '8302'
    8989        elif 'maintenance' in self.context.p_category:
     
    9393            provider_amt = 0.0
    9494            self.pay_item_id = '8304'
    95         if self.context.p_item == 'Balance' or self.context.p_category == 'third_semester':
     95        if self.context.p_item == 'Balance' or self.context.p_category in ('third_semester', 'reg2sandwich'):
    9696            provider_amt = 0.0
    9797        xmldict['institution_amt'] = 100 * (
  • main/waeup.fceokene/trunk/src/waeup/fceokene/remita/browser.py

    r16919 r18057  
    8282        provider_amt = 1600.0
    8383        if self.context.p_item == 'Balance' or self.context.p_category in (
    84             'clearance', 'hostel_maintenance', 'third_semester',
     84            'clearance', 'hostel_maintenance', 'third_semester', 'reg2sandwich',
    8585            'schoolfee_third'):
    8686            provider_amt = 0.0
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r18052 r18057  
    144144        #        no_additional_courses = len(courses_level)-6
    145145        #        amount = 2000.0 * no_additional_courses
     146        elif category == 'reg2sandwich':
     147            amount = 40000.0
    146148        elif category.startswith('schoolfee'):
    147149            increment_2022 = 0
  • main/waeup.fceokene/trunk/src/waeup/fceokene/utils/utils.py

    r17734 r18057  
    9595        'hostel_maintenance': 'Hostel Maintenance Fee',
    9696        'application': 'Application Fee',
    97         'third_semester': 'NCE Third Semester Fee (additional courses)',
     97        'reg2sandwich': 'Regular to Sandwich (14 courses)',
    9898        }
    9999
     
    109109        'application': 'Application Fee',
    110110        #'third_semester': 'NCE Third Semester Fee (additional courses)',
     111        'reg2sandwich': 'Regular to Sandwich (14 courses)',
    111112        }
    112113
Note: See TracChangeset for help on using the changeset viewer.