Ignore:
Timestamp:
17 Jul 2023, 06:23:11 (18 months ago)
Author:
Henrik Bettermann
Message:

Split hostel maintenance fee.

File:
1 edited

Legend:

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

    r17490 r17491  
    412412                xmldict['institution_bank_id'] = bank[1]
    413413
     414        # Hostel Maintenance
     415
     416        elif category == 'hostel_maintenance':
     417            xmldict['institution_amt'] = 100 * self.context.net_amt - 1000000
     418            bank = BANK_ACCOUNTS[category]
     419            xmldict['institution_acct'] = bank[0]
     420            xmldict['institution_bank_id'] = bank[1]
     421            xmltext = """<payment_item_detail>
     422<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     423<item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" />
     424<item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
     425<item_detail item_id="3" item_name="Hostel Consumable Fee" item_amt="1000000" bank_id="123" acct_num="1012332141" />
     426</item_details>
     427</payment_item_detail>""" % xmldict
     428
    414429        # Other fees
     430
    415431        elif category in BANK_ACCOUNTS.keys():
    416432            bank = BANK_ACCOUNTS[category]
Note: See TracChangeset for help on using the changeset viewer.