Changeset 13414 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 9 Nov 2015, 07:08:21 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r13410 r13414 53 53 ICustomStudentPersonalEdit, 54 54 ICustomUGStudentClearance) 55 from waeup.aaue.interswitch.browser import dynamic_gateway_amt55 from waeup.aaue.interswitch.browser import gateway_net_amt 56 56 from waeup.aaue.interfaces import MessageFactory as _ 57 57 … … 145 145 text += '250.0 Naira Transaction Charge' 146 146 if self.context.p_category == 'schoolfee_incl' and academic_session: 147 welfare_fee = academic_session.welfare_fee - dynamic_gateway_amt( 148 academic_session.welfare_fee) 149 union_fee = academic_session.union_fee - dynamic_gateway_amt( 150 academic_session.union_fee) 147 welfare_fee = gateway_net_amt(academic_session.welfare_fee) 148 union_fee = gateway_net_amt(academic_session.union_fee) 151 149 text += (', %s Naira Student Welfare Assurance Fee and %s Naira Students\' Union Dues' 152 150 % (welfare_fee, union_fee)) 153 151 elif self.context.p_category in ( 154 152 'clearance_incl', 'clearance_medical_incl') and academic_session: 155 matric_gown_fee = academic_session.matric_gown_fee - dynamic_gateway_amt( 156 academic_session.matric_gown_fee) 157 lapel_fee = academic_session.lapel_fee - dynamic_gateway_amt( 158 academic_session.lapel_fee) 153 matric_gown_fee = gateway_net_amt(academic_session.matric_gown_fee) 154 lapel_fee = gateway_net_amt(academic_session.lapel_fee) 159 155 text += (', %s Naira Matriculation Gown Fee and %s Naira Lapel/File Fee' 160 156 % (matric_gown_fee, lapel_fee)) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r13413 r13414 24 24 from waeup.kofa.accesscodes import create_accesscode 25 25 from waeup.kofa.students.utils import trans 26 from waeup.aaue.interswitch.browser import dynamic_gateway_amt26 from waeup.aaue.interswitch.browser import gateway_net_amt 27 27 from waeup.aaue.interfaces import MessageFactory as _ 28 28 … … 145 145 # Otherwise we can't add somtehing 146 146 amount = 0.0 147 amount += academic_session.matric_gown_fee + \ 148 academic_session.lapel_fee - \ 149 dynamic_gateway_amt(academic_session.matric_gown_fee) -\ 150 dynamic_gateway_amt(academic_session.lapel_fee) 147 amount += gateway_net_amt(academic_session.matric_gown_fee) + \ 148 gateway_net_amt(academic_session.lapel_fee) 151 149 elif category == 'late_registration': 152 150 amount = academic_session.late_registration_fee … … 183 181 # Otherwise we can't add somtehing 184 182 amount = 0.0 185 amount += academic_session.welfare_fee + \ 186 academic_session.union_fee - \ 187 dynamic_gateway_amt(academic_session.welfare_fee) -\ 188 dynamic_gateway_amt(academic_session.union_fee) 183 amount += gateway_net_amt(academic_session.welfare_fee) + \ 184 gateway_net_amt(academic_session.union_fee) 189 185 if amount in (0.0, None): 190 186 return _(u'Amount could not be determined.'), None
Note: See TracChangeset for help on using the changeset viewer.