- Timestamp:
- 23 May 2018, 05:45:13 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/utils.py
r15013 r15015 118 118 return _('Study course data are incomplete.'), None 119 119 if previous_session: 120 # Students can pay for previous sessions in all 121 # workflow states. Fresh students are excluded by the 122 # update method of the PreviousPaymentAddFormPage. 123 if previous_level == 100: 124 amount = getattr(certificate, 'school_fee_1', 0.0) 125 else: 126 amount = getattr(certificate, 'school_fee_2', 0.0) 120 amount = getattr(certificate, 'school_fee_1', 0.0) 127 121 else: 128 if student.state == CLEARED: 129 amount = getattr(certificate, 'school_fee_1', 0.0) 130 elif student.state == RETURNING: 122 amount = getattr(certificate, 'school_fee_1', 0.0) 123 if student.state == RETURNING: 131 124 # In case of returning school fee payment the 132 125 # payment session and level contain the values of … … 139 132 u'Session configuration object is not available.' 140 133 ), None 141 amount = getattr(certificate, 'school_fee_2', 0.0)134 142 135 elif student.is_postgrad and student.state == PAID: 143 136 # Returning postgraduate students also pay for the … … 150 143 u'Session configuration object is not available.' 151 144 ), None 152 amount = getattr(certificate, 'school_fee_2', 0.0)153 145 elif category == 'clearance': 154 146 try: … … 179 171 elif category == 'siwess_combo': 180 172 amount = academic_session.siwess_combo_fee 173 elif category == 'transcript': 174 amount = academic_session.transcript_fee 175 elif category == 'certificate': 176 amount = academic_session.certificate_fee 181 177 if amount in (0.0, None): 182 178 return _('Amount could not be determined.'), None
Note: See TracChangeset for help on using the changeset viewer.