Changeset 15384


Ignore:
Timestamp:
3 Apr 2019, 13:42:58 (6 years ago)
Author:
Henrik Bettermann
Message:

Revert changes from r15383.

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

    r15383 r15384  
    226226                # First agreement
    227227                provider_amt = 1900.0
    228                 #joint_venture_amt = 1100.0
    229                 #aaue_share_amt = 1000.0
     228                joint_venture_amt = 1100.0
     229                aaue_share_amt = 1000.0
    230230                student_union_due_amt = gateway_net_amt(
    231231                    academic_session.union_fee)
     
    240240                xmldict['student_union_bank_id'] = '31'
    241241                xmldict['student_union_acct'] = '0051005007'
    242                 #xmldict['aaue_share_bank_id'] = '117'
    243                 #xmldict['aaue_share_acct'] = '1010827641'
    244                 #xmldict['joint_venture_bank_id'] = '117'
    245                 #xmldict['joint_venture_acct'] = '1010827641'
     242                xmldict['aaue_share_bank_id'] = '117'
     243                xmldict['aaue_share_acct'] = '1010827641'
     244                xmldict['joint_venture_bank_id'] = '117'
     245                xmldict['joint_venture_acct'] = '1010827641'
    246246                xmldict['institution_acct'] = '1014847058'
    247247                xmldict['institution_bank_id'] = '7'
     
    253253                # Second agreement
    254254                provider_amt = 1500.0
    255                 #joint_venture_amt = 1000.0
    256                 #aaue_share_amt = 1500.0
     255                joint_venture_amt = 1000.0
     256                aaue_share_amt = 1500.0
    257257                student_union_due_amt = gateway_net_amt(
    258258                    academic_session.union_fee)
     
    267267                xmldict['student_union_bank_id'] = '7'
    268268                xmldict['student_union_acct'] = '1019763348'
    269                 #xmldict['aaue_share_bank_id'] = '117'
    270                 #xmldict['aaue_share_acct'] = '1010827641'
    271                 #xmldict['joint_venture_bank_id'] = '117'
    272                 #xmldict['joint_venture_acct'] = '1010827641'
     269                xmldict['aaue_share_bank_id'] = '117'
     270                xmldict['aaue_share_acct'] = '1010827641'
     271                xmldict['joint_venture_bank_id'] = '117'
     272                xmldict['joint_venture_acct'] = '1010827641'
    273273                self.pay_item_id = '107'
    274274                if student.is_postgrad:
     
    280280
    281281            xmldict['provider_amt'] = 100 * provider_amt
    282             #xmldict['joint_venture_amt'] = 100 * joint_venture_amt
    283             #xmldict['aaue_share_amt'] = 100 * aaue_share_amt
     282            xmldict['joint_venture_amt'] = 100 * joint_venture_amt
     283            xmldict['aaue_share_amt'] = 100 * aaue_share_amt
    284284            if self.context.p_item == 'Balance':
    285285                xmldict['institution_amt'] = 100 * (
     
    300300                        gateway_net_amt(self.context.amount_auth)
    301301                        - provider_amt
    302                         #- joint_venture_amt
    303                         #- aaue_share_amt
     302                        - joint_venture_amt
     303                        - aaue_share_amt
    304304                        - student_union_due_amt
    305305                        - student_welfare_assurance_amt
     
    310310<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" />
    311311<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" />
    312 <item_detail item_id="3" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="%(student_union_bank_id)s" acct_num="%(student_union_acct)s" />
    313 <item_detail item_id="4" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" />
    314 <item_detail item_id="5" item_name="Sports Development Fee" item_amt="%(sports_amt)d" bank_id="123" acct_num="1006407792" />
    315 <item_detail item_id="6" item_name="Library Development Fee" item_amt="%(library_amt)d" bank_id="8" acct_num="2000122995" />
     312<item_detail item_id="3" item_name="Joint Venture" item_amt="%(joint_venture_amt)d" bank_id="%(joint_venture_bank_id)s" acct_num="%(joint_venture_acct)s" />
     313<item_detail item_id="4" item_name="AAUE Share" item_amt="%(aaue_share_amt)d" bank_id="%(aaue_share_bank_id)s" acct_num="%(aaue_share_acct)s" />
     314<item_detail item_id="5" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="%(student_union_bank_id)s" acct_num="%(student_union_acct)s" />
     315<item_detail item_id="6" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" />
     316<item_detail item_id="7" item_name="Sports Development Fee" item_amt="%(sports_amt)d" bank_id="123" acct_num="1006407792" />
     317<item_detail item_id="8" item_name="Library Development Fee" item_amt="%(library_amt)d" bank_id="8" acct_num="2000122995" />
    316318</item_details>
    317319</payment_item_detail>""" % xmldict
     
    320322                        gateway_net_amt(self.context.amount_auth)
    321323                        - provider_amt
    322                         #- joint_venture_amt
    323                         #- aaue_share_amt
     324                        - joint_venture_amt
     325                        - aaue_share_amt
    324326                        - student_union_due_amt
    325327                        - student_welfare_assurance_amt)
     
    328330<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" />
    329331<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" />
    330 <item_detail item_id="3" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="%(student_union_bank_id)s" acct_num="%(student_union_acct)s" />
    331 <item_detail item_id="4" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" />
    332 </item_details>
    333 </payment_item_detail>""" % xmldict
    334 
    335             else:
    336                 # Schoolfee without Student Union Fee and Student Welfare Assurance
     332<item_detail item_id="3" item_name="Joint Venture" item_amt="%(joint_venture_amt)d" bank_id="%(joint_venture_bank_id)s" acct_num="%(joint_venture_acct)s" />
     333<item_detail item_id="4" item_name="AAUE Share" item_amt="%(aaue_share_amt)d" bank_id="%(aaue_share_bank_id)s" acct_num="%(aaue_share_acct)s" />
     334<item_detail item_id="5" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="%(student_union_bank_id)s" acct_num="%(student_union_acct)s" />
     335<item_detail item_id="6" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" />
     336</item_details>
     337</payment_item_detail>""" % xmldict
     338
     339            elif student.current_mode == 'bridge':
     340                # Bridge school fee without any additional fee
     341                xmldict['institution_amt'] = 100 * (
     342                    gateway_net_amt(self.context.amount_auth)
     343                    - provider_amt)
     344                xmltext = """<payment_item_detail>
     345<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     346<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" />
     347<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" />
     348</item_details>
     349</payment_item_detail>""" % xmldict
     350            else:
     351                # Schoolfee without Student Union Fee ands Student Welfare Assurance
    337352                xmldict['institution_amt'] = 100 * (
    338353                    gateway_net_amt(self.context.amount_auth)
    339354                    - provider_amt
    340                     #- joint_venture_amt
    341                     #- aaue_share_amt
    342                     )
     355                    - joint_venture_amt
     356                    - aaue_share_amt)
    343357                xmltext = """<payment_item_detail>
    344358<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    345359<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" />
    346360<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" />
     361<item_detail item_id="3" item_name="Joint Venture" item_amt="%(joint_venture_amt)d" bank_id="%(joint_venture_bank_id)s" acct_num="%(joint_venture_acct)s" />
     362<item_detail item_id="4" item_name="AAUE Share" item_amt="%(aaue_share_amt)d" bank_id="%(aaue_share_bank_id)s" acct_num="%(aaue_share_acct)s" />
    347363</item_details>
    348364</payment_item_detail>""" % xmldict
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r15383 r15384  
    236236        self.assertTrue(
    237237            'item_name="School Fee Plus" '
    238             'item_amt="4810000" bank_id="7" '
     238            'item_amt="4600000" bank_id="7" '
    239239            'acct_num="1014847058"' in self.browser.contents)
    240240
     
    277277            in self.browser.contents)
    278278        self.assertTrue(
    279             'item_name="School Fee Plus" item_amt="5000000" bank_id="117" '
     279            'item_name="School Fee Plus" item_amt="4750000" bank_id="117" '
    280280            'acct_num="1010827641"' in self.browser.contents)
    281281
Note: See TracChangeset for help on using the changeset viewer.