Changeset 15105


Ignore:
Timestamp:
13 Aug 2018, 05:55:02 (6 years ago)
Author:
Henrik Bettermann
Message:

Maryanne: make the student union dues a fee on its own

Location:
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interfaces.py

    r15071 r15105  
    105105        )
    106106
     107    union_fee = schema.Float(
     108        title = _(u'Student Union Dues'),
     109        default = 0.0,
     110        required = False,
     111        )
     112
    107113    def getSessionString():
    108114        """Returns the session string from the vocabulary.
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/browser.py

    r15101 r15105  
    8080            if self.context.p_category == 'clearance':
    8181                provider_amt = 1500.0
    82 
    8382            # temporarily disabled
    8483            #if self.context.p_category in ('transcript', 'certificate'):
    8584            #    provider_amt = 2000.0
    86 
    8785        # Institution data
    8886        xmldict['institution_acct'] = '0068241848'
    8987        xmldict['institution_bank_id'] = '121'
     88        if self.context.p_category == 'union':
     89            xmldict['institution_acct'] = '0066437412'
    9090        xmldict['institution_amt'] = '0.0'
    9191        self.pay_item_id = '101' # must be provided by Interswitch
     
    9696            self.context.amount_auth - provider_amt - GATEWAY_AMT)
    9797        # Interswitch amount is not part of the xml data
    98         if not self.context.p_item == 'Balance' \
    99             and self.context.p_category == 'schoolfee':
    100             xmldict['institution_amt'] -= 200000
    101             xmltext = """<payment_item_detail>
    102 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    103 <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" />
    104 <item_detail item_id="2" item_name="Student Union Dues" item_amt="200000" bank_id="121" acct_num="0066437412" />
    105 </item_details>
    106 </payment_item_detail>""" % xmldict
    107         elif provider_amt == 0:
     98        if provider_amt == 0:
    10899            xmltext = """<payment_item_detail>
    109100<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interswitch/tests.py

    r15087 r15105  
    105105            self.browser.contents)
    106106        self.assertTrue(
    107             'item_name="Tuition/Exams Fee and Student Union Dues" item_amt="3775000" bank_id="121" acct_num="0068241848"' in
    108             self.browser.contents)
    109         self.assertTrue(
    110             'item_name="Student Union Dues" item_amt="200000" bank_id="121" acct_num="0066437412"' in
     107            'item_name="Tuition/Exams Fee" item_amt="3975000" bank_id="121" acct_num="0068241848"' in
    111108            self.browser.contents)
    112109        # Clearance Fee
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/utils.py

    r15078 r15105  
    228228        elif category == 'late_registration':
    229229            amount = academic_session.late_registration_fee
     230        elif category == 'union':
     231            amount = academic_session.union_fee
    230232        if amount in (0.0, None):
    231233            return _('Amount could not be determined.'), None
  • main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/utils/utils.py

    r15103 r15105  
    3535
    3636    PAYMENT_CATEGORIES = {
    37         'schoolfee': 'Tuition/Exams Fee and Student Union Dues',
     37        'schoolfee': 'Tuition/Exams Fee',
    3838        'clearance': 'Acceptance Fee',
    3939        'bed_allocation': 'Accommodation Booking Fee',
     
    4848        'late_registration': 'Late Course Registration Fee',
    4949        'final_clearance': 'Final Clearance Fee',
     50        'union': 'Student Union Dues',
    5051        }
    5152
     
    5354
    5455    BALANCE_PAYMENT_CATEGORIES = {
    55         'schoolfee': 'Tuition/Exams Fee and Student Union Dues',
     56        'schoolfee': 'Tuition/Exams Fee',
    5657        'ict_entre': 'ICT and Entrepreneur Fee',
    5758        'certificate_confirm': 'Certificate Confirmation Fee',
     
    7071        'late_registration': 'Late Course Registr. Fee',
    7172        'final_clearance': 'Final Clearance Fee',
     73        'union': 'Student Union Dues',
    7274        }
    7375
Note: See TracChangeset for help on using the changeset viewer.