Changeset 18364


Ignore:
Timestamp:
18 Nov 2026, 15:10:11 (4 days ago)
Author:
Henrik Bettermann
Message:

New NCE school fees.

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_utils.py

    r15594 r18364  
    8484        IWorkflowState(self.student).setState('returning')
    8585        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    86         self.assertEqual(payment.amount_auth, 15974) # 15875 + 99
     86        self.assertEqual(payment.amount_auth, 29099.0) # 20000 + 99
    8787        self.student['studycourse'].previous_verdict = 'O'
    8888        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    89         self.assertEqual(payment.amount_auth, 15875)
     89        self.assertEqual(payment.amount_auth, 29000.0)
    9090        return
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r18262 r18364  
    154154            amount = 40000.0
    155155        elif category.startswith('schoolfee'):
    156             increment_2022 = 0
    157156            if category == 'schoolfee_pde1':
    158157                if not student.current_mode.startswith('pd'):
    … …  
    228227            # NCE
    229228            elif not student.current_mode.endswith('_sw'):
    230                 # in 2022 NCE school fees have encreased
    231                 increment_2022 = 11000
    232229                # PRENCE
    233230                if student.current_level == 10 and student.state == CLEARED:
    234                     if student.depcode in ARTS:
    235                         amount = 24500
    236                     else:
    237                         amount = 25000
     231                    amount = 25000
    238232                # NCE I fresh
    239233                elif student.current_level == 100 and student.state == CLEARED:
    240                     if student.depcode in ARTS:
    241                         amount = 28000
    242                     else:
    243                         amount = 28500
     234                    amount = 42000
    244235                    # SIWES Fee
    245236                    if student.depcode in ('AGE', 'BED', 'FAA', 'HEC', 'CSC', 'MUS') \
    … …  
    258249                elif student.current_level in (100, 110, 120) and \
    259250                    student.state == RETURNING:
    260                     if student.depcode in ARTS:
    261                         amount = 24500
    262                     else:
    263                         amount = 25000
     251                    amount = 31500
    264252                # NCE III third semester
    265253                elif category == 'schoolfee_third':
    266254                    amount = 18000
    267                     increment_2022 = 0
    268255                # NCE III
    269256                elif student.current_level in (200, 210, 220):
    270                     if student.depcode in ARTS:
    271                         amount = 15375
    272                     else:
    273                         amount = 15875
    274                     increment_2022 = 20125
     257                    amount = 29000
    275258                # NCE III repeater
    276259                elif student.current_level in (300, 310, 320) and \
    277260                    student.current_verdict == 'O':
    278                     if student.depcode in ARTS:
    279                         amount = 13475
    280                     else:
    281                         amount = 13975
    282                     increment_2022 = 11000
     261                    amount = 45000
    283262                # NCE III spillover
    284263                elif student.current_level in (300, 310, 320) and \
    285264                    student.current_verdict == 'B':
    286                     if student.depcode in ARTS:
    287                         amount = 13475
    288                     else:
    289                         amount = 13975
    290                     increment_2022 = 20125
     265                    amount = 45000
    291266                # NCE III second spillover
    292267                elif student.current_level in (400, 410, 420) and \
    293268                    student.current_verdict == 'B':
    294                     if student.depcode in ARTS:
    295                         amount = 13475
    296                     else:
    297                         amount = 13975
    298                     increment_2022 = 20125
     269                    amount = 45000
    299270            else:
    300271                # NCE I fresh sw
    … …  
    360331                if academic_session == None:
    361332                    return _(u'Session configuration object is not available.'), None
    362             if amount and p_session > 2021:
    363                     amount += increment_2022
    364333        else:
    365334            fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.