Changeset 16704 for main/kofacustom.edocons/trunk/src/kofacustom/edocons
- Timestamp:
- 8 Nov 2021, 08:41:58 (3 years ago)
- Location:
- main/kofacustom.edocons/trunk/src/kofacustom/edocons
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/interswitch/tests.py
r16698 r16704 80 80 self.browser.contents) 81 81 self.assertTrue( 82 'item_name="School Fee" item_amt="4000000" bank_id="00" acct_num="00000000"' in 82 'item_name="School Fee (total amount)" item_amt="4000000" bank_id="00" acct_num="00000000"' in 83 self.browser.contents) 84 self.browser.open(self.payments_path + '/addop') 85 self.browser.getControl(name="form.p_category").value = ['schoolfee_1'] 86 self.browser.getControl("Create ticket").click() 87 self.assertMatches('...ticket created...', 88 self.browser.contents) 89 self.browser.open(self.payments_path) 90 ctrl = self.browser.getControl(name='val_id') 91 self.value = ctrl.options[1] 92 self.browser.getLink(self.value).click() 93 self.assertMatches('...Amount Authorized...', 94 self.browser.contents) 95 self.assertTrue( 96 '<span>24000.0</span>' in self.browser.contents) 97 self.payment_url = self.browser.url 98 self.browser.getLink("Pay via Interswitch CollegePAY", index=0).click() 99 self.assertMatches('...<input type="hidden" name="pay_item_id" value="Default_Payable_MX26002" />...', 100 self.browser.contents) 101 self.assertEqual(self.student.current_mode, 'ug_ft') 102 self.assertTrue( 103 '<input type="hidden" name="amount" value="2430000" />' in 104 self.browser.contents) 105 self.assertTrue( 106 'item_name="School Fee (60% - 1st instalment)" item_amt="2400000" bank_id="00" acct_num="00000000"' in 83 107 self.browser.contents) 84 108 … … 87 111 acc_payment = createObject('waeup.StudentOnlinePayment') 88 112 acc_payment.p_state = 'unpaid' 89 acc_payment.p_category = ' clearance'113 acc_payment.p_category = 'schoolfee' 90 114 acc_payment.p_id = 'xyz' 91 115 acc_payment.pay_item_id = '123' -
main/kofacustom.edocons/trunk/src/kofacustom/edocons/locales/en/LC_MESSAGES/waeup.kofa.po
r16639 r16704 9 9 "Content-Type: text/plain; charset=iso-8859-1\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "Language: en\n" 12 "X-Generator: Poedit 1.6.5\n" 11 13 12 14 msgid "Academics" 13 15 msgstr "Institutions" 14 16 17 #: waeup/kofa/university/interfaces.py:286 18 msgid "Initial School Fee" 19 msgstr "School Fee" 20 21 #: waeup/kofa/university/interfaces.py:292 22 msgid "Returning School Fee" 23 msgstr "Returning School Fee (not used)" 24 25 #: waeup/kofa/university/interfaces.py:298 26 msgid "Foreigner Initial School Fee" 27 msgstr "Foreigner Initial School Fee (not used)" 28 29 #: waeup/kofa/university/interfaces.py:304 30 msgid "Foreigner Returning School Fee" 31 msgstr "Foreigner Returning School Fee (not used)" -
main/kofacustom.edocons/trunk/src/kofacustom/edocons/students/utils.py
r16702 r16704 70 70 # workflow states. Fresh students are excluded by the 71 71 # update method of the PreviousPaymentAddFormPage. 72 if previous_level == 100: 73 amount = getattr(certificate, 'school_fee_1', 0.0) 72 amount = getattr(certificate, 'school_fee_1', 0.0) 73 else: 74 if category == 'secondinstal': 75 amount = 0.4 * getattr(certificate, 'school_fee_1', 0.0) 74 76 else: 75 amount = getattr(certificate, 'school_fee_2', 0.0)76 else:77 if student.state == CLEARED:78 amount = getattr(certificate, 'school_fee_1', 0.0)79 elif student.state == RETURNING:80 # In case of returning school fee payment the81 # payment session and level contain the values of82 # the session the student has paid for. Payment83 # session is always next session.84 p_session, p_level = self.getReturningData(student)85 academic_session = self._getSessionConfiguration(p_session)86 if academic_session == None:87 return _(88 u'Session configuration object is not available.'89 ), None90 amount = getattr(certificate, 'school_fee_2', 0.0)91 elif student.is_postgrad and student.state == PAID:92 # Returning postgraduate students also pay for the93 # next session but their level always remains the94 # same.95 p_session += 196 academic_session = self._getSessionConfiguration(p_session)97 if academic_session == None:98 return _(99 u'Session configuration object is not available.'100 ), None101 amount = getattr(certificate, 'school_fee_2', 0.0)77 if student.state == CLEARED: 78 amount = getattr(certificate, 'school_fee_1', 0.0) 79 elif student.state == RETURNING: 80 # In case of returning school fee payment the 81 # payment session and level contain the values of 82 # the session the student has paid for. Payment 83 # session is always next session. 84 p_session, p_level = self.getReturningData(student) 85 academic_session = self._getSessionConfiguration(p_session) 86 if academic_session == None: 87 return _( 88 u'Session configuration object is not available.' 89 ), None 90 amount = getattr(certificate, 'school_fee_1', 0.0) 91 elif student.is_postgrad and student.state == PAID: 92 # Returning postgraduate students also pay for the 93 # next session but their level always remains the 94 # same. 95 p_session += 1 96 academic_session = self._getSessionConfiguration(p_session) 97 if academic_session == None: 98 return _( 99 u'Session configuration object is not available.' 100 ), None 101 amount = getattr(certificate, 'school_fee_1', 0.0) 102 if category == 'schoolfee_1': 103 amount *= 0.6 102 104 elif category == 'clearance': 103 105 try: -
main/kofacustom.edocons/trunk/src/kofacustom/edocons/utils/utils.py
r16701 r16704 25 25 26 26 PAYMENT_CATEGORIES = { 27 'schoolfee': 'School Fee', 28 'clearance': 'Acceptance Fee', 27 'schoolfee': 'School Fee (total amount)', 28 'schoolfee_1': 'School Fee (60% - 1st instalment)', 29 'secondinstal': 'School Fee (40% - 2nd instalment)', 30 'clearance': 'Acceptance Fee (not applicable)', 29 31 #'bed_allocation': 'Bed Allocation Fee', 30 32 #'hostel_maintenance': 'Hostel Maintenance Fee', 31 33 #'transfer': 'Transfer Fee', 32 34 #'gown': 'Gown Hire Fee', 33 'application': 'Application Fee ',35 'application': 'Application Fee (not applicable)', 34 36 #'app_balance': 'Application Fee Balance', 35 37 #'transcript': 'Transcript Fee', … … 38 40 } 39 41 40 #SELECTABLE_PAYMENT_CATEGORIES = {41 # }42 43 def selectable_payment_categories(self, student):44 return self.PAYMENT_CATEGORIES42 SELECTABLE_PAYMENT_CATEGORIES = { 43 'schoolfee': 'School Fee (total amount)', 44 'schoolfee_1': 'School Fee (60% - 1st instalment)', 45 'secondinstal': 'School Fee (40% - 2nd instalment)', 46 }
Note: See TracChangeset for help on using the changeset viewer.