Ignore:
Timestamp:
31 Jan 2022, 09:01:03 (3 years ago)
Author:
Henrik Bettermann
Message:

Change dep_sug fee.

Location:
main/kofacustom.dspg/trunk/src/kofacustom/dspg
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py

    r16760 r16762  
    332332            # amount_auth is being ignored. However, the sum of all split payments
    333333            # must coincide with the amount_auth configured in students/utils.py
    334             xmldict['amt1'] = 100 * 1000
    335             xmldict['amt2'] = 100 * 500
     334            xmldict['amt1'] = 100 * 2000
     335            xmldict['amt2'] = 100 * 1000
    336336            xmldict['amt3'] = 100 * 900
    337             xmldict['amt4'] = 100 * 500
     337            xmldict['amt4'] = 100 * 1000
    338338
    339339            xmltext = """<payment_item_detail>
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py

    r16760 r16762  
    227227        self.browser.getControl("Create ticket").click()
    228228        self.assertMatches('...ticket created...', self.browser.contents)
    229         self.assertTrue('<span>3150.0</span>'  in self.browser.contents)
    230         self.payment_url = self.browser.url
    231         self.browser.getLink("Pay via Interswitch", index=0).click()
    232         self.assertTrue('<item_detail item_id="1" item_name="SUG" item_amt="100000" bank_id="11" acct_num="0038079930" />'
    233             in self.browser.contents)
    234         self.assertTrue('<item_detail item_id="2" item_name="Students Welfare" item_amt="50000" bank_id="11" acct_num="0037892949" />'
     229        self.assertTrue('<span>5150.0</span>'  in self.browser.contents)
     230        self.payment_url = self.browser.url
     231        self.browser.getLink("Pay via Interswitch", index=0).click()
     232        self.assertTrue('<item_detail item_id="1" item_name="SUG" item_amt="200000" bank_id="11" acct_num="0038079930" />'
     233            in self.browser.contents)
     234        self.assertTrue('<item_detail item_id="2" item_name="Students Welfare" item_amt="100000" bank_id="11" acct_num="0037892949" />'
    235235            in self.browser.contents)
    236236        self.assertTrue('<item_detail item_id="3" item_name="Anti-Cult Book" item_amt="90000" bank_id="11" acct_num="0037892949" />'
    237237            in self.browser.contents)
    238         self.assertTrue('<item_detail item_id="4" item_name="NADESSTU" item_amt="50000" bank_id="11" acct_num="0036375968" />'
     238        self.assertTrue('<item_detail item_id="4" item_name="NADESSTU" item_amt="100000" bank_id="11" acct_num="0036375968" />'
    239239            in self.browser.contents)
    240240
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/tests/test_utils.py

    r16760 r16762  
    8787        self.assertEqual(payment.p_level, 200)
    8888        self.assertEqual(payment.p_session, 2005)
    89         self.assertEqual(payment.amount_auth, 3150.0)
     89        self.assertEqual(payment.amount_auth, 5150.0)
    9090        # Students can pay school fee if dep_sug and gns dues have been paid first.
    9191        error, payment = utils.setPaymentDetails('schoolfee',self.student)
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py

    r16760 r16762  
    281281                return _(u'No bed allocated.'), None
    282282        elif category == 'dep_sug':
    283             amount = 3150.0 # includes GATEWAY_AMT
     283            amount = 5150.0 # includes GATEWAY_AMT
    284284            #if student.faccode == 'SPAT':
    285285            #    amount = 1650.0 # includes GATEWAY_AMT
Note: See TracChangeset for help on using the changeset viewer.