Ignore:
Timestamp:
5 Aug 2022, 16:34:49 (2 years ago)
Author:
Henrik Bettermann
Message:

Restructure school fee calculation completely.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r16967 r17057  
    179179        cpt_value = ctrl.options[0]
    180180        # School fee payment ticket can be added ...
    181         self.student['studycourse'].certificate.school_fee_1 = 6666.0
     181        self.student['studycourse'].certificate.school_fee_3 = 6666.0
    182182        self.student.nationality = u'NG'
    183183        self.browser.open(self.payments_path + '/addop')
     
    233233        self.app['configuration'].addSessionConfiguration(configuration_1)
    234234        self.student['studycourse'].certificate.study_mode = 'ug_pt'
    235         self.student['studycourse'].certificate.school_fee_1 = 6666.0
     235        self.student['studycourse'].certificate.school_fee_2 = 6666.0
    236236        self.app['configuration']['2015'].union_fee = 1250.0
    237237        self.app['configuration']['2015'].welfare_fee = 750.0
     
    329329
    330330    def test_manage_payments_bypass_ac_creation(self):
    331         self.student['studycourse'].certificate.school_fee_1 = 6666.0
     331        self.student['studycourse'].certificate.school_fee_3 = 6666.0
    332332        self.student.nationality = u'NG'
    333333        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
     
    563563
    564564    def test_payment_disabled(self):
     565        self.student['studycourse'].certificate.school_fee_3 = 6666.0
    565566        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    566567        self.browser.open(self.payments_path)
     
    648649        self.student['studycourse'].current_session = 2018
    649650        self.student['studycourse'].entry_mode = 'ug_ft'
    650         self.student['studycourse'].certificate.school_fee_1 = 50200.0
     651        self.student['studycourse'].certificate.school_fee_2 = 50200.0
    651652        self.app['configuration']['2018'].union_fee = 1200.0
    652653        self.app['configuration']['2018'].welfare_fee = 700.0
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py

    r15871 r17057  
    7474        self.assertEqual(payment.p_level, 100)
    7575        self.assertEqual(payment.p_session, 2004)
    76         self.assertEqual(payment.amount_auth, 26666.0)
     76        self.assertEqual(payment.amount_auth, 28888.0)
    7777        self.assertEqual(payment.p_item, u'CERT1')
    7878        self.assertEqual(error, None)
     
    8484        self.student.lga = 'edo_afuze'
    8585        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    86         self.assertEqual(payment.amount_auth, 6765.0)
     86        self.assertEqual(payment.amount_auth, 8987.0)
    8787        IWorkflowState(self.student).setState('returning')
    8888        error, payment = utils.setPaymentDetails('schoolfee',self.student)
     
    164164        self.assertEqual(payment.p_level, 100)
    165165        self.assertEqual(payment.p_session, 2004)
    166         self.assertEqual(payment.amount_auth, 6666.0)
     166        self.assertEqual(payment.amount_auth, 8888.0)
    167167        self.assertEqual(payment.p_item, u'CERT1')
    168168        self.assertEqual(error, None)
Note: See TracChangeset for help on using the changeset viewer.