Ignore:
Timestamp:
27 Oct 2016, 14:20:09 (8 years ago)
Author:
Henrik Bettermann
Message:

Ad Stuent ID card payments.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
5 edited

Legend:

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

    r14087 r14234  
    125125            'AAU-STUDENT-WELFARE-ASSURANCE': ('welfare',),
    126126            'AAU-STUDENT-WELFARE-ASSURANCE-PT': ('welfare',),
     127
     128            'AAU-STUDENT-ID_CARD': ('id_card',),
    127129
    128130            'HOSTEL-ACCOMMODATION-FEE': ('hostel_maintenance',),
  • main/waeup.aaue/trunk/src/waeup/aaue/interfaces.py

    r14117 r14234  
    116116        )
    117117
     118    id_card_fee = schema.Float(
     119        title = _(u'Student ID Card Fee'),
     120        default = 0.0,
     121        required = True,
     122        )
     123
    118124    welfare_fee = schema.Float(
    119125        title = _(u'AAU Student Welfare Assurance Fee'),
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r14232 r14234  
    409409</payment_item_detail>""" % xmldict
    410410
     411        # ID Card
     412        elif self.context.p_category == 'id_card':
     413            self.pay_item_id = '000'
     414            xmldict['institution_acct'] = '1010827641'
     415            xmldict['institution_bank_id'] = '117'
     416            xmldict['institution_amt'] = 100 * (
     417                gateway_net_amt(self.context.amount_auth))
     418            xmltext = """<payment_item_detail>
     419<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     420<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" />
     421</item_details>
     422</payment_item_detail>""" % xmldict
     423
    411424        # Matric Gown
    412425        elif self.context.p_category == 'matric_gown':
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r14229 r14234  
    193193        elif category == 'welfare' and not student.is_postgrad:
    194194            amount = academic_session.welfare_fee
     195        elif category == 'id_card' and not student.is_postgrad:
     196            amount = academic_session.id_card_fee
    195197        elif category == 'union' and not student.is_postgrad:
    196198            amount = academic_session.union_fee
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r13963 r14234  
    4747        'matric_gown': 'Matriculation Gown Fee',
    4848        'concessional': 'Concessional Fee',
     49        'id_card': 'Student ID Card',
    4950        }
    5051
     
    6768        'matric_gown': 'Matriculation Gown Fee',
    6869        'concessional': 'Concessional Fee',
     70        'id_card': 'Student ID Card',
    6971        }
    7072
     
    8890        'lapel': 'Lapel/File Fee',
    8991        'matric_gown': 'Matriculation Gown Fee',
     92        'id_card': 'Student ID Card',
    9093        }
    9194
Note: See TracChangeset for help on using the changeset viewer.