Changeset 15391 for main


Ignore:
Timestamp:
12 Apr 2019, 06:13:35 (6 years ago)
Author:
Henrik Bettermann
Message:

WAeAC does not have share in 1st agreement acceptance.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/interswitch
Files:
2 edited

Legend:

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

    r15387 r15391  
    391391                else:
    392392                    self.pay_item_id = '104'
     393                provider_amt = 0.0
    393394                xmldict['institution_acct'] = '1014847058'
    394395                xmldict['institution_bank_id'] = '7'
     
    416417<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" />
    417418<item_detail item_id="2" item_name="Matriculation Gown Fee" item_amt="%(gown_fee_amt)d" bank_id="117" acct_num="1010827641" />
    418 <item_detail item_id="3" item_name="AAU File-Lapel Fee" item_amt="%(aaue_lf_fee_amt)d" bank_id="117" acct_num="1010827641" />
     419<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
     420                if contr_agreement_student(student) == 'second':
     421                    xmltext += """"
    419422<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" />
     423</item_details>
     424</payment_item_detail>""" % xmldict
     425                else:
     426                    xmltext += """"
    420427</item_details>
    421428</payment_item_detail>""" % xmldict
     
    438445                xmltext = """<payment_item_detail>
    439446<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    440 <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" />
    441 <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" />
    442 </item_details>
    443 </payment_item_detail>""" % xmldict
    444 
     447<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" />"""
     448                if contr_agreement_student(student) == 'second':
     449                        xmltext += """"
     450<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" />
     451</item_details>
     452</payment_item_detail>""" % xmldict
     453                else:
     454                        xmltext += """"
     455</item_details>
     456</payment_item_detail>""" % xmldict
    445457
    446458        # Union Dues
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r15388 r15391  
    310310        self.assertTrue(
    311311            'item_name="Acceptance Fee Plus" '
    312             'item_amt="3850000" bank_id="7" '
     312            'item_amt="4000000" bank_id="7" '
    313313            'acct_num="1014847058"' in self.browser.contents)
    314314
Note: See TracChangeset for help on using the changeset viewer.