Changeset 15992


Ignore:
Timestamp:
6 Feb 2020, 10:48:21 (5 years ago)
Author:
Henrik Bettermann
Message:

Split combined sports and library fee.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
3 edited

Legend:

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

    r15978 r15992  
    260260        )
    261261
    262     sports_library_fee = schema.Float(
    263         title = _(u'Sports Development and UG Library Fee'),
    264         default = 0.0,
    265         required = True,
    266         )
     262    #sports_library_fee = schema.Float(
     263    #    title = _(u'Sports Development and UG Library Fee'),
     264    #    default = 0.0,
     265    #    required = True,
     266    #    )
    267267
    268268    ict_fee = schema.Float(
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r15978 r15992  
    648648        #        gateway_net_amt(self.context.amount_auth))
    649649
    650         # Sports & Library Fee
     650        # Sports & Library Fee    temporarily in 2020
    651651        elif self.context.p_category == 'sports_library':
    652652            self.pay_item_id = '105'
    653             xmldict['institution_amt'] = 100 * (
    654                 gateway_net_amt(self.context.amount_auth))
    655 
     653            xmldict['sports_amt'] = 100 * 3000.0
     654            xmldict['library_amt'] = 100 * 1000.0
     655            xmltext = """<payment_item_detail>
     656<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     657<item_detail item_id="1" item_name="Sports Development Fee" item_amt="%(sports_amt)d" bank_id="123" acct_num="1006407792" />
     658<item_detail item_id="2" item_name="Library Development Fee" item_amt="%(library_amt)d" bank_id="8" acct_num="2000122995" />
     659</item_details>
     660</payment_item_detail>""" % xmldict
    656661
    657662        # Late Registration Fee
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r15976 r15992  
    474474            if student.entry_session >= 2019:
    475475                amount += gateway_net_amt(academic_session.ict_fee)
     476        elif category == ('sports_library'): # temporarily in 2020
     477                amount = 4200.0
    476478        elif not student.is_postgrad:
    477479            fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.