Changeset 11920 for main/waeup.fceokene


Ignore:
Timestamp:
31 Oct 2014, 06:45:52 (10 years ago)
Author:
Henrik Bettermann
Message:

Third semester fee applies to nce_sw and not nce_ft.

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

    r11919 r11920  
    107107
    108108        # Third semester payment
     109        self.certificate.study_mode = 'nce_sw'
    109110        self.app['configuration']['2004'].third_semester_fee = 10000.0
    110111        self.browser.open(self.payments_path)
     
    117118        self.browser.getLink(value).click()
    118119        self.browser.getLink("CollegePAY", index=0).click()
    119 
    120120        self.assertTrue(
    121121            '<input type="hidden" name="amount" value="691300" />'
    122122            in self.browser.contents)
    123123        self.assertTrue(
    124             'item_name="NCE Third Semester Fee" item_amt="376300" bank_id="117" acct_num="1012044015"'
     124            'item_name="NCE Third Semester Fee" item_amt="376300" bank_id="117" acct_num="1012044194"'
    125125            in self.browser.contents)
    126126        self.assertTrue(
     
    132132
    133133        # Maintenance fee payment
    134 
     134        self.certificate.study_mode = 'nce_ft'
    135135        self.browser.open(self.payments_path)
    136136        self.browser.open(self.payments_path + '/addop')
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py

    r11919 r11920  
    133133        self.assertMatches('...could not be determined...',
    134134                           self.browser.contents)
    135         self.certificate.study_mode = 'nce_ft'
     135        self.certificate.study_mode = 'nce_sw'
    136136        self.browser.open(self.payments_path + '/addop')
    137137        self.browser.getControl(name="form.p_category").value = ['third_semester']
     
    284284        self.assertEqual(error, None)
    285285
     286        self.certificate.study_mode = 'nce_sw'
    286287        error, payment = utils.setPaymentDetails('third_semester',self.student)
    287288        self.assertEqual(payment.p_level, 100)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r11919 r11920  
    147147            except (AttributeError, TypeError):
    148148                return _('Study course data are incomplete.'), None
    149         elif category == 'third_semester' and student.current_mode == 'nce_ft':
     149        elif category == 'third_semester' and student.current_mode == 'nce_sw':
    150150            if student.depcode in ARTS:
    151151                amount = 5835
Note: See TracChangeset for help on using the changeset viewer.