Changeset 8263 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 24 Apr 2012, 15:37:51 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py
r8259 r8263 181 181 182 182 def _fillCustomFields(self, payment, pay_details): 183 payment.surcharge_1 = pay_details['surcharge_1'] 184 payment.surcharge_2 = pay_details['surcharge_2'] 185 payment.surcharge_3 = pay_details['surcharge_3'] 183 # No custom fields at the moment 186 184 return payment 187 185 -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r8247 r8263 23 23 from waeup.uniben.interfaces import MessageFactory as _ 24 24 25 def get_school_fee(student , surcharge):25 def get_school_fee(student): 26 26 study_mode = student['studycourse'].certificate.study_mode 27 27 entry_mode = student['studycourse'].entry_mode … … 34 34 # fresh 35 35 if state == CLEARED: 36 return 40000.0 - surcharge36 return 40000.0 37 37 # returning 38 38 elif state == RETURNING: 39 return 20000.0 - surcharge39 return 20000.0 40 40 else: 41 41 return 0.0 … … 88 88 def getPaymentDetails(self, category, student): 89 89 d = {} 90 d['surcharge_1'] = d['surcharge_2'] = d['surcharge_3'] = 0.091 90 d['p_item'] = u'' 92 91 d['amount'] = 0.0 … … 111 110 d['amount'] = academic_session.clearance_fee 112 111 elif category == 'schoolfee': 113 d['surcharge_1'] = academic_session.surcharge_1 114 d['surcharge_2'] = academic_session.surcharge_2 115 d['amount'] = get_school_fee(student, d['surcharge_1'] + d['surcharge_2']) 112 d['amount'] = get_school_fee(student) 116 113 code = student['studycourse'].certificate.code 117 114 d['p_item'] = code
Note: See TracChangeset for help on using the changeset viewer.