Changeset 15396


Ignore:
Timestamp:
25 Apr 2019, 07:10:27 (6 years ago)
Author:
Henrik Bettermann
Message:

Fix xml record. Add ijmbe to first agreement.

File:
1 edited

Legend:

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

    r15391 r15396  
    5959
    6060def contr_agreement_applicant(applicant):
    61     if applicant.__parent__.code[:2] in ('fp', 'pt', 'ds'):
     61    if applicant.__parent__ in (
     62        'fp',
     63        'ptee',
     64        'dsh',
     65        'bridge',
     66        'ijmbe',
     67        ):
    6268        return 'first'
    6369    return 'second'
     
    7177        'ug_pt',
    7278        'de_pt',
    73         'dp_pt'):
     79        'dp_pt',
     80        'ijmbe',
     81        ):
    7482        return 'first'
    7583    return 'second'
     
    329337                        xmltext += """"
    330338</item_details>
    331 </payment_item_detail>""" % xmldict
     339</payment_item_detail>"""
    332340                else:
    333341                    xmldict['institution_amt'] = 100 * (
     
    353361                        xmltext += """"
    354362</item_details>
    355 </payment_item_detail>""" % xmldict
     363</payment_item_detail>"""
    356364            elif contr_agreement_student(student) == 'second':
    357365                # Schoolfee without Student Union Fee ands Student Welfare Assurance
     
    426434                    xmltext += """"
    427435</item_details>
    428 </payment_item_detail>""" % xmldict
     436</payment_item_detail>"""
    429437
    430438            elif student.current_mode == 'bridge':
     
    445453                xmltext = """<payment_item_detail>
    446454<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    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" />"""
     455<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
    448456                if contr_agreement_student(student) == 'second':
    449457                        xmltext += """"
     
    454462                        xmltext += """"
    455463</item_details>
    456 </payment_item_detail>""" % xmldict
     464</payment_item_detail>"""
    457465
    458466        # Union Dues
Note: See TracChangeset for help on using the changeset viewer.