Ignore:
Timestamp:
20 Jun 2019, 12:45:11 (6 years ago)
Author:
Henrik Bettermann
Message:

ivama: acceptance fee split is unique to "ug_ft"
The reason for split is perculiar to them only... That amount was deducted from UTME application fee because some regulatory body have pegged the application fee which didn't affect another programmes.

File:
1 edited

Legend:

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

    r15464 r15467  
    395395        # Clearance
    396396        elif self.context.p_category.startswith('clearance'):
    397             provider_amt = 1500.0
    398             xmldict['provider_amt'] = 100 * provider_amt
     397            provider_amt = 0.0
    399398            if contr_agreement_student(student) == 'first':
    400399                # First agreement
     
    403402                else:
    404403                    self.pay_item_id = '104'
    405                 provider_amt = 0.0
    406404                xmldict['institution_acct'] = '1014847058'
    407405                xmldict['institution_bank_id'] = '7'
     
    415413                if student.current_mode == 'ijmbe':
    416414                    self.pay_item_id = '120'
    417 
     415                # ivama: Acceptance fee split is unique to "ug_ft"
     416                # The reason for split is perculiar to them only...
     417                # That amount was deducted from UTME application fee because
     418                # some regulatory body have pegged the application fee which
     419                # didn't affect another programmes.
     420                if student.current_mode == 'ug_ft':
     421                    provider_amt = 1500.0
     422            xmldict['provider_amt'] = 100 * provider_amt
    418423            if self.context.p_category.endswith('_incl'):
    419424                # Clearance including additional fees
     
    432437<item_detail item_id="2" item_name="Matriculation Gown Fee" item_amt="%(gown_fee_amt)d" bank_id="117" acct_num="1010827641" />
    433438<item_detail item_id="3" item_name="AAU File-Lapel Fee" item_amt="%(aaue_lf_fee_amt)d" bank_id="117" acct_num="1010827641" />""" % xmldict
    434                 if contr_agreement_student(student) == 'second':
     439                if provider_amt:
    435440                    xmltext += """"
    436441<item_detail item_id="4" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
     
    460465<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    461466<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" />""" % xmldict
    462                 if contr_agreement_student(student) == 'second':
     467                if provider_amt:
    463468                        xmltext += """"
    464469<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" />
Note: See TracChangeset for help on using the changeset viewer.