Changeset 16760 for main/kofacustom.dspg/trunk/src/kofacustom/dspg/students
- Timestamp:
- 28 Jan 2022, 08:17:50 (3 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/tests/test_utils.py
r16562 r16760 110 110 self.assertEqual(payment.p_level, 200) 111 111 self.assertEqual(payment.p_session, 2005) 112 self.assertEqual(payment.amount_auth, 9999.0) # now includes Microsoft Fee 112 # 9999 + 5950 + 15000 4250 113 self.assertEqual(payment.amount_auth, 35199.0) 113 114 -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py
r16752 r16760 24 24 from kofacustom.dspg.interfaces import MessageFactory as _ 25 25 26 MICROSOFT_FEE = 0.027 28 26 def local(student): 29 27 lga = getattr(student, 'lga') … … 31 29 return True 32 30 return False 31 32 def MICROSOFT_FEE(student): 33 if student.is_fresh: 34 return 5950.0 35 return 0.0 36 37 def DEVELOP_FEE(student): 38 if local(student) and student.faccode != 'SPAT': 39 return 10000.0 40 return 15000.0 41 42 def TECH_FEE(student): 43 if student.is_fresh: 44 return 4250.0 45 return 1200.0 33 46 34 47 class CustomStudentsUtils(NigeriaStudentsUtils): … … 213 226 300, 310, 320, 330, 600, 610, 620, 630): 214 227 amount -= 7000 215 amount += MICROSOFT_FEE216 228 elif student.is_postgrad and student.state == PAID: 217 229 # Returning postgraduate students also pay for the … … 228 240 else: 229 241 amount = getattr(certificate, 'school_fee_4', 0.0) 242 amount += MICROSOFT_FEE(student) 243 amount += DEVELOP_FEE(student) 244 amount += TECH_FEE(student) 230 245 elif category == 'clearance': 231 246 try:
Note: See TracChangeset for help on using the changeset viewer.