Changeset 16323


Ignore:
Timestamp:
21 Nov 2020, 08:18:45 (4 years ago)
Author:
Henrik Bettermann
Message:

Configure facilities and eed extra fees.

Location:
main/kofacustom.dspg/trunk/src/kofacustom/dspg
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interfaces.py

    r16309 r16323  
    370370        )
    371371
     372    eed_extra_fee = schema.Float(
     373        title = _(u'EED Extra Fee'),
     374        default = 0.0,
     375        required = True,
     376        )
     377
    372378    olevel_results_1_fee = schema.Float(
    373379        title = _(u'O Level Results Verification 1'),
     
    486492    conv_fee = schema.Float(
    487493        title = _(u'Convocation Pack'),
     494        default = 0.0,
     495        required = True,
     496        )
     497
     498    facilities_fee = schema.Float(
     499        title = _(u'Facilities Upgrade Fee'),
    488500        default = 0.0,
    489501        required = True,
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py

    r16309 r16323  
    178178            xmldict['institution_acct'] = '0039782431'
    179179            xmldict['institution_bank_id'] = '11'
     180        elif self.context.p_category == 'eed_extra':
     181            self.pay_item_id = '000'
     182            xmldict['institution_acct'] = '0039782431'
     183            xmldict['institution_bank_id'] = '11'
    180184        elif self.context.p_category == 'olevel_results_1':
    181185            self.pay_item_id = '113'
     
    202206        elif self.context.p_category == 'lsfp_penalty':
    203207            self.pay_item_id = '102'
     208            xmldict['institution_acct'] = '1012808851'
     209            xmldict['institution_bank_id'] = '117'
     210        elif self.context.p_category == 'eng_1':
     211            self.pay_item_id = '118'
     212            xmldict['institution_acct'] = '2024473077'
     213            xmldict['institution_bank_id'] = '8'
     214        elif self.context.p_category == 'eng_2':
     215            self.pay_item_id = '119'
     216            xmldict['institution_acct'] = '2024473077'
     217            xmldict['institution_bank_id'] = '8'
     218        elif self.context.p_category == 'bfn':
     219            self.pay_item_id = '125'
     220            xmldict['institution_acct'] = '0048039049'
     221            xmldict['institution_bank_id'] = '11'
     222        elif self.context.p_category == 'facilities':
     223            self.pay_item_id = '000'
    204224            xmldict['institution_acct'] = '1012808851'
    205225            xmldict['institution_bank_id'] = '117'
     
    293313</payment_item_detail>""" % xmldict
    294314
    295         if self.context.p_category == 'eng_1':
    296             self.pay_item_id = '118'
    297             xmltext = """<payment_item_detail>
    298 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    299 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="8" acct_num="2024473077" />
    300 </item_details>
    301 </payment_item_detail>""" % xmldict
    302 
    303         if self.context.p_category == 'eng_2':
    304             self.pay_item_id = '119'
    305             xmltext = """<payment_item_detail>
    306 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    307 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="8" acct_num="2024473077" />
    308 </item_details>
    309 </payment_item_detail>""" % xmldict
    310 
    311315        if self.context.p_category == 'sbs_1':
    312316            self.pay_item_id = '120'
     
    335339<item_detail item_id="1" item_name="SBS Dues II" item_amt="%(amt1)d" bank_id="11" acct_num="0010772626" />
    336340<item_detail item_id="2" item_name="ABSOBS" item_amt="%(amt2)d" bank_id="8" acct_num="2008185712" />
    337 </item_details>
    338 </payment_item_detail>""" % xmldict
    339 
    340         if self.context.p_category == 'bfn':
    341             self.pay_item_id = '125'
    342             xmltext = """<payment_item_detail>
    343 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    344 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="11" acct_num="0048039049" />
    345341</item_details>
    346342</payment_item_detail>""" % xmldict
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/utils/utils.py

    r16309 r16323  
    110110        'eed_1': 'EED 1 Fee',
    111111        'eed_2': 'EED 2 Fee',
     112        'eed_extra': 'EED Extra Fee',
    112113        'olevel_results_1': 'O Level Results Verification 1',
    113114        'olevel_results_2': 'O Level Results Verification 2',
     
    130131        'lsfp_penalty':'Late School Fee Payment Penalty',
    131132        'conv':'Convocation Pack',
     133        'facilities':'Facilities Upgrade',
    132134        }
    133135
     
    180182        'eed_1': 'EED 1 Fee',
    181183        'eed_2': 'EED 2 Fee',
     184        'eed_extra': 'EED Extra Fee',
    182185        'olevel_results_1': 'O Level Results Verification 1',
    183186        'olevel_results_2': 'O Level Results Verification 2',
     
    200203        'lsfp_penalty':'Late School Fee Payment Penalty',
    201204        'conv':'Convocation Pack',
     205        'facilities':'Facilities Upgrade',
    202206        }
    203207
Note: See TracChangeset for help on using the changeset viewer.