Changeset 15391 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 12 Apr 2019, 06:13:35 (6 years ago)
- 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 391 391 else: 392 392 self.pay_item_id = '104' 393 provider_amt = 0.0 393 394 xmldict['institution_acct'] = '1014847058' 394 395 xmldict['institution_bank_id'] = '7' … … 416 417 <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" /> 417 418 <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 += """" 419 422 <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 += """" 420 427 </item_details> 421 428 </payment_item_detail>""" % xmldict … … 438 445 xmltext = """<payment_item_detail> 439 446 <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 445 457 446 458 # Union Dues -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r15388 r15391 310 310 self.assertTrue( 311 311 'item_name="Acceptance Fee Plus" ' 312 'item_amt=" 3850000" bank_id="7" '312 'item_amt="4000000" bank_id="7" ' 313 313 'acct_num="1014847058"' in self.browser.contents) 314 314
Note: See TracChangeset for help on using the changeset viewer.