Ignore:
Timestamp:
7 Jan 2014, 07:46:32 (11 years ago)
Author:
Henrik Bettermann
Message:

Configure ug_ft school fee.

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

Legend:

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

    r10875 r10876  
    3030from waeup.fceokene.testing import FunctionalLayer
    3131
    32 session = datetime.now().year - 2
     32session = datetime.datetime.now().year - 2
    3333
    3434class ApplicantUITest(FunctionalTestCase):
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py

    r10829 r10876  
    247247        self.assertEqual(error, None)
    248248
    249         # UG students pay 65800
     249        # UG returning students pay 56150
    250250        self.certificate.study_mode = 'ug_ft'
     251        error, payment = utils.setPaymentDetails('schoolfee',self.student)
     252        self.assertEqual(payment.amount_auth, 56300.0)
     253        self.assertEqual(error, None)
     254        # UG cleared students pay 65650
     255        IWorkflowState(self.student).setState('cleared')
    251256        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    252257        self.assertEqual(payment.amount_auth, 65800.0)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r10829 r10876  
    165165            # UG
    166166            elif student.current_mode == 'ug_ft':
    167                 amount = 65650
     167            # Introducing returning students fee for 'ug_ft' for 1st time
     168            # on 07/01/2014
     169                if student.state == CLEARED:
     170                    amount = 65650
     171                else:
     172                    amount = 56150
    168173            # NCE
    169174            elif not student.current_mode.endswith('_sw'):
Note: See TracChangeset for help on using the changeset viewer.