Ignore:
Timestamp:
4 Mar 2013, 06:53:59 (12 years ago)
Author:
Henrik Bettermann
Message:

NCE student payment can be disabled by setting the base school fee to -1.

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

Legend:

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

    r9998 r10009  
    246246        self.assertEqual(error, None)
    247247
     248        # NCE student payment can be disabled by
     249        # setting the base school fee to -1
     250        IWorkflowState(self.student).setState('returning')
     251        configuration = createObject('waeup.SessionConfiguration')
     252        self.app['configuration']['2004'].school_fee_base = -1.0
     253        self.certificate.study_mode = 'nce_ft'
     254        error, payment = utils.setPaymentDetails('schoolfee',self.student)
     255        self.assertEqual(error, u'Amount could not be determined.')
     256
    248257        error, payment = utils.setPaymentDetails('clearance',self.student)
    249258        self.assertEqual(payment.p_level, 100)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r9989 r10009  
    122122                    'NFRE','NARB','NHAU','NIGB','NYOR','NSOS')
    123123
    124             #PDE Students
     124            #PDE
    125125            if student.current_mode == 'pd_ft':
    126126                amount = 35000
     127            # NCE/UG
    127128            elif not student.current_mode.endswith('_sw'):
    128129                # PRENCE
     
    178179                    else:
    179180                        amount = 22400
    180                 # NCE/UG II
     181                # NCE/UG II sw
    181182                elif student.current_level in (100, 110, 120) and \
    182183                    student.state == RETURNING:
     
    185186                    else:
    186187                        amount = 18900
    187                 # NCE/UG III
     188                # NCE/UG III sw
    188189                elif student.current_level in (200, 210, 220):
    189190                    if student.depcode in ARTS:
     
    191192                    else:
    192193                        amount = 20900
    193                 # NCE/UG IV
     194                # NCE/UG IV sw
    194195                elif student.current_level in (300, 310, 320):
    195196                    if student.depcode in ARTS:
     
    197198                    else:
    198199                        amount = 18900
    199                 # NCE/UG V
     200                # NCE/UG V sw
    200201                elif student.current_level in (400, 410, 420):
    201202                    if student.depcode in ARTS:
     
    203204                    else:
    204205                        amount = 18900
    205                 # NCE/UG V spillover
     206                # NCE/UG V spillover sw
    206207                elif student.current_level in (500, 510, 520) and \
    207208                    student.current_verdict == 'B':
     
    210211                    else:
    211212                        amount = 17400
    212                 # NCE/UG V second spillover
     213                # NCE/UG V second spillover sw
    213214                elif student.current_level in (600, 610, 620) and \
    214215                    student.current_verdict == 'B':
     
    217218                    else:
    218219                        amount = 17400
     220            # NCE student payment can be disabled by
     221            # setting the base school fee to -1
     222            if academic_session.school_fee_base == -1 and \
     223                student.current_mode.startswith('nce'):
     224                amount = 0
    219225            if student.state == RETURNING:
    220226                # Override p_session and p_level
Note: See TracChangeset for help on using the changeset viewer.