Ignore:
Timestamp:
8 Nov 2015, 06:18:44 (9 years ago)
Author:
Henrik Bettermann
Message:

Remove duplicate payment category.

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

Legend:

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

    r13377 r13410  
    141141        )
    142142
    143     medical_fee = schema.Float(
    144         title = _(u'Medical Student Acceptance Fee'),
    145         default = 0.0,
    146         required = True,
    147         )
    148 
    149143    coursereg_deadline = schema.Datetime(
    150144        title = _(u'Course Reg. Deadline'),
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r13409 r13410  
    271271                xmldict['institution_bank_id'] = '117'
    272272
    273             if self.context.p_category == 'clearance_incl':
     273            if self.context.p_category.endswith('_incl'):
    274274                # Clearance including additional fees
    275275                gown_fee_amt = academic_session.matric_gown_fee - \
     
    373373</payment_item_detail>""" % xmldict
    374374
    375         # Medical Acceptance
    376         elif self.context.p_category == 'medical':
    377             self.pay_item_id = '108'
    378             xmldict['institution_acct'] = '1010827641'
    379             xmldict['institution_bank_id'] = '117'
    380             xmldict['institution_amt'] = 100 * (
    381                 self.context.amount_auth -
    382                 dynamic_gateway_amt(self.context.amount_auth))
    383             xmltext = """<payment_item_detail>
    384 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    385 <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" />
    386 </item_details>
    387 </payment_item_detail>""" % xmldict
    388 
    389375        # Hostel Maintenance
    390376        elif self.context.p_category == 'hostel_maintenance':
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r13408 r13410  
    140140            in self.browser.contents)
    141141        self.assertTrue(
    142             'item_name="School Fee plus" '
     142            'item_name="School Fee Plus" '
    143143            'item_amt="4600000" bank_id="7" '
    144144            'acct_num="1014847058"' in self.browser.contents)
     
    215215            in self.browser.contents)
    216216        self.assertTrue(
    217             'item_name="Acceptance Fee plus" '
     217            'item_name="Acceptance Fee Plus" '
    218218            'item_amt="4000000" bank_id="117" '
    219219            'acct_num="1014066976"' in self.browser.contents)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r13408 r13410  
    151151            text += (', %s Naira Student Welfare Assurance Fee and %s Naira Students\' Union Dues'
    152152                     % (welfare_fee, union_fee))
    153         elif self.context.p_category == 'clearance_incl' and academic_session:
     153        elif self.context.p_category in (
     154            'clearance_incl', 'clearance_medical_incl') and academic_session:
    154155            matric_gown_fee = academic_session.matric_gown_fee - dynamic_gateway_amt(
    155156                academic_session.matric_gown_fee)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py

    r13406 r13410  
    132132        elif category == 'concessional':
    133133            amount = academic_session.concession_fee
    134         elif category == 'medical':
    135             amount = academic_session.medical_fee
    136134        elif category.startswith('clearance'):
    137135            if student.faccode == 'FP':
     
    145143            p_item = student['studycourse'].certificate.code
    146144            # Add Matric Gown Fee and Lapel Fee
    147             if category == 'clearance_incl':
     145            if category.endswith('_incl'):
    148146                if amount is None:
    149147                    # Otherwise we can't add somtehing
    150148                    amount = 0.0
    151149                amount += academic_session.matric_gown_fee + \
    152                           academic_session.lapel_fee - \
    153                           2*(dynamic_gateway_amt(amount))
     150                    academic_session.lapel_fee - \
     151                    dynamic_gateway_amt(academic_session.matric_gown_fee) -\
     152                    dynamic_gateway_amt(academic_session.lapel_fee)
    154153        elif category == 'late_registration':
    155154            amount = academic_session.late_registration_fee
     
    187186                    amount = 0.0
    188187                amount += academic_session.welfare_fee + \
    189                           academic_session.union_fee - \
    190                           2*(dynamic_gateway_amt(amount))
     188                    academic_session.union_fee - \
     189                    dynamic_gateway_amt(academic_session.welfare_fee) -\
     190                    dynamic_gateway_amt(academic_session.union_fee)
    191191        if amount in (0.0, None):
    192192            return _(u'Amount could not be determined.'), None
  • main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py

    r13403 r13410  
    3131        'schoolfee_1': 'School Fee 1st instalment',
    3232        'schoolfee_2': 'School Fee 2nd instalment',
    33         'schoolfee_incl': 'School Fee plus',
     33        'schoolfee_incl': 'School Fee Plus',
    3434        'clearance': 'Acceptance Fee',
    35         'clearance_incl': 'Acceptance Fee plus',
     35        'clearance_incl': 'Acceptance Fee Plus',
     36        'clearance_medical': 'Medical Student Acceptance Fee',
     37        'clearance_medical_incl': 'Medical Student Acceptance Fee Plus',
     38        'medical': 'Medical Student Acceptance Fee', # deprecated
    3639        'hostel_maintenance': 'Hostel Maintenance Fee',
    3740        'application': 'Application Fee',
     
    4649        'matric_gown': 'Matriculation Gown Fee',
    4750        'concessional': 'Concessional Fee',
    48         'medical': 'Medical Student Acceptance Fee',
    4951        }
    5052
     
    5355        #'schoolfee_1': 'School Fee 1st instalment',
    5456        #'schoolfee_2': 'School Fee 2nd instalment',
    55         'schoolfee_incl': 'School Fee plus Students\' Union and Welfare Assurance fees',
     57        'schoolfee_incl': 'School Fee + Students\' Union Dues + Welfare Assurance Fee',
    5658        'clearance': 'Acceptance Fee without additional fees',
    57         'clearance_incl': 'Acceptance Fee plus Matric Gown and Lapel/File fees',
     59        'clearance_incl': 'Acceptance Fee + Matric Gown Fee + Lapel/File Fee',
     60        'clearance_medical': 'Medical Student Acceptance Fee',
     61        'clearance_medical_incl': 'Medical Student Acceptance Fee + Matric Gown Fee + Lapel/File Fee',
    5862        'hostel_maintenance': 'Hostel Maintenance Fee',
    5963        'application': 'Application Fee',
     
    6872        'matric_gown': 'Matriculation Gown Fee',
    6973        'concessional': 'Concessional Fee',
    70         'medical': 'Medical Student Acceptance Fee',
    7174        }
    7275
Note: See TracChangeset for help on using the changeset viewer.