Changeset 14258


Ignore:
Timestamp:
5 Nov 2016, 04:33:57 (8 years ago)
Author:
Henrik Bettermann
Message:

Configure GST , ENT and Fac. Dep. Fees.

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

Legend:

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

    r14248 r14258  
    152152        )
    153153
    154     text_book_1_fee = schema.Float(
     154    gst_text_book_1_fee = schema.Float(
    155155        title = _(u'Text Book Fee GST101 GST102'),
    156156        default = 0.0,
     
    158158        )
    159159
    160     text_book_2_fee = schema.Float(
     160    gst_text_book_2_fee = schema.Float(
    161161        title = _(u'Text Book Fee GST111 GST112'),
    162162        default = 0.0,
     
    164164        )
    165165
    166     text_book_3_fee = schema.Float(
     166    gst_text_book_3_fee = schema.Float(
    167167        title = _(u'Text Book Fee GST222'),
    168168        default = 0.0,
     
    170170        )
    171171
    172     text_book_4_fee = schema.Float(
     172    ent_text_book_4_fee = schema.Float(
    173173        title = _(u'Text Book Fee ENT201'),
    174174        default = 0.0,
     
    176176        )
    177177
    178     registration_1_fee = schema.Float(
     178    gst_registration_1_fee = schema.Float(
    179179        title = _(u'Registration Fee GST101 GST102 GST111 GST112'),
    180180        default = 0.0,
     
    182182        )
    183183
    184     registration_2_fee = schema.Float(
     184    gst_registration_2_fee = schema.Float(
    185185        title = _(u'Registration Fee GST222'),
    186186        default = 0.0,
     
    188188        )
    189189
    190     registration_3_fee = schema.Float(
     190    ent_registration_3_fee = schema.Float(
    191191        title = _(u'Registration Fee ENT201'),
    192192        default = 0.0,
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r14248 r14258  
    472472</payment_item_detail>""" % xmldict
    473473
     474        # GST Fees
     475        elif self.context.p_category.startswith('gst_'):
     476            self.pay_item_id = '116'
     477            xmldict['institution_acct'] = '1010893123'
     478            xmldict['institution_bank_id'] = '117'
     479            xmldict['institution_amt'] = 100 * (
     480                gateway_net_amt(self.context.amount_auth))
     481            xmltext = """<payment_item_detail>
     482<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     483<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" />
     484</item_details>
     485</payment_item_detail>""" % xmldict
     486
     487        # ENT Fees
     488        elif self.context.p_category.startswith('ent_'):
     489            self.pay_item_id = '118'
     490            xmldict['institution_acct'] = '6220029828'
     491            xmldict['institution_bank_id'] = '51'
     492            xmldict['institution_amt'] = 100 * (
     493                gateway_net_amt(self.context.amount_auth))
     494            xmltext = """<payment_item_detail>
     495<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     496<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" />
     497</item_details>
     498</payment_item_detail>""" % xmldict
     499
     500        # Faculty and Departmental Dues
     501        elif self.context.p_category == 'fac_dep':
     502            self.pay_item_id = '117'
     503            xmldict['institution_acct'] = '1010827641'
     504            xmldict['institution_bank_id'] = '117'
     505            xmldict['institution_amt'] = 100 * (
     506                gateway_net_amt(self.context.amount_auth))
     507            xmltext = """<payment_item_detail>
     508<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     509<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" />
     510</item_details>
     511</payment_item_detail>""" % xmldict
     512
    474513        self.xml_data = """<input type="hidden" name="xml_data" value='%s'  />""" % xmltext
    475514        self.context.provider_amt = provider_amt
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r14248 r14258  
    4848        'concessional': 'Concessional Fee',
    4949        'id_card': 'Student ID Card',
    50         'text_book_1': 'Text Book Fee GST101 GST102',
    51         'text_book_2': 'Text Book Fee GST111 GST112',
    52         'text_book_3': 'Text Book Fee GST222',
    53         'text_book_4': 'Text Book Fee ENT201',
    54         'registration_1': 'Registration Fee GST101 GST102 GST111 GST112',
    55         'registration_2': 'Registration Fee GST222',
    56         'registration_3': 'Registration Fee ENT201',
     50        'gst_text_book_1': 'Text Book Fee GST101 GST102',
     51        'gst_text_book_2': 'Text Book Fee GST111 GST112',
     52        'gst_text_book_3': 'Text Book Fee GST222',
     53        'ent_text_book_4': 'Text Book Fee ENT201',
     54        'gst_registration_1': 'Registration Fee GST101 GST102 GST111 GST112',
     55        'gst_registration_2': 'Registration Fee GST222',
     56        'ent_registration_3': 'Registration Fee ENT201',
    5757        'fac_dep': 'Faculty and Departmental Dues',
    5858        }
     
    7777        'concessional': 'Concessional Fee',
    7878        #'id_card': 'Student ID Card',
    79         'text_book_1': 'Text Book Fee GST101 GST102',
    80         'text_book_2': 'Text Book Fee GST111 GST112',
    81         'text_book_3': 'Text Book Fee GST222',
    82         'text_book_4': 'Text Book Fee ENT201',
    83         'registration_1': 'Registration Fee GST101 GST102 GST111 GST112',
    84         'registration_2': 'Registration Fee GST222',
    85         'registration_3': 'Registration Fee ENT201',
     79        'gst_text_book_1': 'Text Book Fee GST101 GST102',
     80        'gst_text_book_2': 'Text Book Fee GST111 GST112',
     81        'gst_text_book_3': 'Text Book Fee GST222',
     82        'ent_text_book_4': 'Text Book Fee ENT201',
     83        'gst_registration_1': 'Registration Fee GST101 GST102 GST111 GST112',
     84        'gst_registration_2': 'Registration Fee GST222',
     85        'ent_registration_3': 'Registration Fee ENT201',
    8686        'fac_dep': 'Faculty and Departmental Dues',
    8787        }
     
    107107        'matric_gown': 'Matriculation Gown Fee',
    108108        'id_card': 'Student ID Card',
    109         'text_book_1': 'Text Book Fee GST101 GST102',
    110         'text_book_2': 'Text Book Fee GST111 GST112',
    111         'text_book_3': 'Text Book Fee GST222',
    112         'text_book_4': 'Text Book Fee ENT201',
    113         'registration_1': 'Registration Fee GST101 GST102 GST111 GST112',
    114         'registration_2': 'Registration Fee GST222',
    115         'registration_3': 'Registration Fee ENT201',
     109        'gst_text_book_1': 'Text Book Fee GST101 GST102',
     110        'gst_text_book_2': 'Text Book Fee GST111 GST112',
     111        'gst_text_book_3': 'Text Book Fee GST222',
     112        'ent_text_book_4': 'Text Book Fee ENT201',
     113        'gst_registration_1': 'Registration Fee GST101 GST102 GST111 GST112',
     114        'gst_registration_2': 'Registration Fee GST222',
     115        'ent_registration_3': 'Registration Fee ENT201',
    116116        'fac_dep': 'Faculty and Departmental Dues',
    117117        }
Note: See TracChangeset for help on using the changeset viewer.