Changeset 17381 for main/kofacustom.edocons/trunk/src/kofacustom
- Timestamp:
- 17 Apr 2023, 08:48:33 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/students/utils.py
r17380 r17381 82 82 amount = getattr(certificate, 'school_fee_2', 0.0) 83 83 else: 84 # Second instalment can be paid in all states.85 if category == 'secondinstal':86 if student.is_fresh:87 amount = 0.305 * getattr(certificate, 'school_fee_1', 0.0)88 else:89 amount = 0.305 * getattr(certificate, 'school_fee_2', 0.0)90 84 if student.state == CLEARED: 91 85 amount = getattr(certificate, 'school_fee_1', 0.0) … … 114 108 ), None 115 109 if category == 'schoolfee_1': 116 amount *= 0.695 110 if student.is_fresh: 111 amount *= 0.695 112 else: 113 amount *= 0.622 114 # Second instalment can be paid in all states. 115 if category == 'secondinstal': 116 if student.is_fresh: 117 amount = 0.305 * getattr(certificate, 'school_fee_1', 0.0) 118 else: 119 amount = 0.378 * getattr(certificate, 'school_fee_2', 0.0) 117 120 elif category == 'clearance': 118 121 try:
Note: See TracChangeset for help on using the changeset viewer.