Changeset 14086 for main


Ignore:
Timestamp:
18 Aug 2016, 06:01:01 (8 years ago)
Author:
Henrik Bettermann
Message:

Two different acounts for student union fees.

File:
1 edited

Legend:

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

    r14078 r14086  
    212212                xmldict['institution_bank_id'] = '7'
    213213                xmldict['institution_acct'] = '1014847058'
     214                xmldict['student_union_bank_id'] = '31'
     215                xmldict['student_union_acct'] = '0051005007'
    214216                if student.current_mode == 'found':
    215217                    self.pay_item_id = '103'
     
    227229                xmldict['institution_bank_id'] = '117'
    228230                xmldict['institution_acct'] = '1010827641'
     231                xmldict['student_union_bank_id'] = '123'
     232                xmldict['student_union_acct'] = '1006360118'
    229233                self.pay_item_id = '107'
    230234                if student.is_postgrad:
     
    261265<item_detail item_id="3" item_name="Joint Venture" item_amt="%(joint_venture_amt)d" bank_id="51" acct_num="5060023759" />
    262266<item_detail item_id="4" item_name="AAUE Share" item_amt="%(aaue_share_amt)d" bank_id="51" acct_num="5060020947" />
    263 <item_detail item_id="5" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="31" acct_num="0051005007" />
     267<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" />
    264268<item_detail item_id="6" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" />
    265269</item_details>
     
    333337        elif self.context.p_category == 'union':
    334338            self.pay_item_id = '103'
    335             xmldict['institution_acct'] = '0051005007'
    336             xmldict['institution_bank_id'] = '31'
     339            if contr_agreement_student(student) == 'first':
     340                # First agreement
     341                xmldict['institution_bank_id'] = '123'
     342                xmldict['institution_acct'] = '1006360118'
     343            else:
     344                # Second agreement
     345                xmldict['institution_acct'] = '0051005007'
     346                xmldict['institution_bank_id'] = '31'
    337347            xmldict['institution_amt'] = 100 * (
    338348                gateway_net_amt(self.context.amount_auth))
Note: See TracChangeset for help on using the changeset viewer.