Changeset 7928 for main/waeup.custom/trunk/src/waeup/custom/students
- Timestamp:
- 20 Mar 2012, 14:37:35 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup/custom/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/students/tests/test_browser.py
r7895 r7928 96 96 def test_manage_payments(self): 97 97 # Add missing configuration data 98 self.app['configuration']['2004'].gown_fee = 150 99 self.app['configuration']['2004'].transfer_fee = 90 100 self.app['configuration']['2004'].clearance_fee = 120 101 self.app['configuration']['2004'].maint_fee = 180 98 self.app['configuration']['2004'].gown_fee = 150.0 99 self.app['configuration']['2004'].transfer_fee = 90.0 100 self.app['configuration']['2004'].clearance_fee = 120.0 101 self.app['configuration']['2004'].maint_fee = 180.0 102 102 103 103 # Managers can add online payment tickets -
main/waeup.custom/trunk/src/waeup/custom/students/utils.py
r7879 r7928 33 33 # fresh 34 34 if state == CLEARED: 35 return 40000 - surcharge35 return 40000.0 - surcharge 36 36 # returning 37 37 elif state == RETURNING: 38 return 20000 - surcharge38 return 20000.0 - surcharge 39 39 else: 40 return 0 40 return 0.0 41 41 else: 42 return 0 42 return 0.0 43 43 44 44 class StudentsUtils(StudentsUtils): … … 59 59 def getPaymentDetails(self, category, student): 60 60 d = {} 61 d['surcharge_1'] = d['surcharge_2'] = d['surcharge_3'] = 0 61 d['surcharge_1'] = d['surcharge_2'] = d['surcharge_3'] = 0.0 62 62 d['p_item'] = u'' 63 d['amount'] = 0 63 d['amount'] = 0.0 64 64 d['error'] = u'' 65 65 d['p_session'] = student['studycourse'].current_session … … 88 88 d['p_item'] = code 89 89 d['p_session'] += 1 90 if d['amount'] == 0 :90 if d['amount'] == 0.0: 91 91 d['error'] = _(u'Amount could not be determined.') 92 92 return d
Note: See TracChangeset for help on using the changeset viewer.