Changeset 6877 for main/waeup.sirp/trunk/src/waeup/sirp/students/utils.py
- Timestamp:
- 13 Oct 2011, 06:06:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/utils.py
r6876 r6877 22 22 23 23 def getPaymentDetails(category, student): 24 #import pdb; pdb.set_trace() 25 session_string = academic_sessions_vocab.by_value[ 26 student['studycourse'].current_session].title 24 p_session = student['studycourse'].current_session 27 25 surcharge_1 = surcharge_2 = surcharge_3 = 0 26 p_item = u'' 28 27 if category == 'transfer': 29 28 amount = 500 30 item = u'Session %s' % session_string31 29 elif category == 'gown': 32 30 amount = 500 33 item = u'Session %s' % session_string34 31 elif category == 'hostel_maintenance': 35 32 amount = 300 36 item = u'Session %s' % session_string37 33 elif category == 'schoolfee': 38 34 surcharge_1 = 1500 # BT amount 39 35 surcharge_2 = 300 # Interswitch amount 40 36 amount = getSchoolFee(student, surcharge_1 + surcharge_2) 41 item = u'Session %s' % session_string 42 return amount, item, surcharge_1, surcharge_2, surcharge_3 37 code = student['studycourse'].certificate.code 38 #session_string = academic_sessions_vocab.by_value[p_session + 1].title 39 p_item = code 40 p_session += 1 41 return amount, p_item, p_session, surcharge_1, surcharge_2, surcharge_3 43 42 44 43 # To be moved to the FUTMinna customization package
Note: See TracChangeset for help on using the changeset viewer.