Ignore:
Timestamp:
3 Nov 2014, 12:19:35 (10 years ago)
Author:
Henrik Bettermann
Message:

Third semester fee applies to nce_ft and not nce_sw.
Increase fees.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py

    r11920 r11932  
    107107
    108108        # Third semester payment
    109         self.certificate.study_mode = 'nce_sw'
    110109        self.app['configuration']['2004'].third_semester_fee = 10000.0
    111110        self.browser.open(self.payments_path)
     
    119118        self.browser.getLink("CollegePAY", index=0).click()
    120119        self.assertTrue(
    121             '<input type="hidden" name="amount" value="691300" />'
    122             in self.browser.contents)
    123         self.assertTrue(
    124             'item_name="NCE Third Semester Fee" item_amt="376300" bank_id="117" acct_num="1012044194"'
     120            '<input type="hidden" name="amount" value="791300" />'
     121            in self.browser.contents)
     122        self.assertTrue(
     123            'item_name="NCE Third Semester Fee" item_amt="476300" bank_id="117" acct_num="1012044015"'
    125124            in self.browser.contents)
    126125        self.assertTrue(
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py

    r11920 r11932  
    128128        self.assertMatches('...ticket created...',
    129129                           self.browser.contents)
     130        self.certificate.study_mode = 'nce_sw'
    130131        self.browser.open(self.payments_path + '/addop')
    131132        self.browser.getControl(name="form.p_category").value = ['third_semester']
     
    133134        self.assertMatches('...could not be determined...',
    134135                           self.browser.contents)
    135         self.certificate.study_mode = 'nce_sw'
     136        self.certificate.study_mode = 'nce_ft'
    136137        self.browser.open(self.payments_path + '/addop')
    137138        self.browser.getControl(name="form.p_category").value = ['third_semester']
     
    284285        self.assertEqual(error, None)
    285286
    286         self.certificate.study_mode = 'nce_sw'
    287287        error, payment = utils.setPaymentDetails('third_semester',self.student)
    288288        self.assertEqual(payment.p_level, 100)
    289289        self.assertEqual(payment.p_session, 2004)
    290         self.assertEqual(payment.amount_auth, 6913.0)
     290        self.assertEqual(payment.amount_auth, 7913.0)
    291291        self.assertEqual(payment.p_item, u'')
    292292        self.assertEqual(error, None)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r11920 r11932  
    147147            except (AttributeError, TypeError):
    148148                return _('Study course data are incomplete.'), None
    149         elif category == 'third_semester' and student.current_mode == 'nce_sw':
     149        elif category == 'third_semester' and student.current_mode == 'nce_ft':
    150150            if student.depcode in ARTS:
    151                 amount = 5835
     151                amount = 6835
    152152            else:
    153                 amount = 6763
     153                amount = 7763
    154154        elif category == 'schoolfee':
    155155            try:
Note: See TracChangeset for help on using the changeset viewer.