Changeset 17123
- Timestamp:
- 11 Oct 2022, 11:21:15 (2 years ago)
- Location:
- main/kofacustom.unidel/trunk/src/kofacustom/unidel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
r16893 r17123 37 37 # refix 38 38 STUDENT_ID_PREFIX = u'D' 39 40 def _clearancePaymentMade(self, student): 41 if len(student['payments']): 42 for ticket in student['payments'].values(): 43 if ticket.p_state == 'paid' and \ 44 ticket.p_category == 'clearance': 45 return True 46 return False 39 47 40 48 def setPaymentDetails(self, category, student, … … 82 90 amount = getattr(certificate, 'school_fee_2', 0.0) 83 91 else: 92 if student.is_jupeb: 93 if not self._clearancePaymentMade(student): 94 return _(u'Acceptance fee must be paid first.'), None 84 95 if student.state == CLEARED: 85 96 amount = getattr(certificate, 'school_fee_1', 0.0) -
main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py
r17116 r17123 66 66 APP_CATS_DICT = { 67 67 'basic': 'UAS, PUTME, PUDE, PCE, PRENCE', 68 'de': 'Direct Entry Programmes', 68 69 'no': 'No Application', 69 70 'pre': 'Pre-Degree Studies', … … 71 72 'dp_ft': 'Full-Time Diploma Programmes', 72 73 'dp_pt': 'Part-Time Diploma Programmes', 73 'de': 'Direct Entry Programmes',74 74 } 75 75
Note: See TracChangeset for help on using the changeset viewer.