Ignore:
Timestamp:
25 Feb 2022, 06:16:09 (3 years ago)
Author:
Henrik Bettermann
Message:

Distinguish local and non-local students.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/tests.py

    r16736 r16835  
    6969        self.assertMatches('...Amount Authorized...',
    7070                           self.browser.contents)
    71         self.assertTrue(
    72             '<span>40000.0</span>' in self.browser.contents)
     71        # plus 40000 because student is not from Delta state.
     72        self.assertTrue(
     73            '<span>80000.0</span>' in self.browser.contents)
    7374        self.payment_url = self.browser.url
    7475        self.browser.getLink("Pay via Interswitch", index=0).click()
     
    7778        self.assertEqual(self.student.current_mode, 'ug_ft')
    7879        self.assertTrue(
    79             '<input type="hidden" name="amount" value="4025000" />' in
    80             self.browser.contents)
    81         self.assertTrue(
    82             'item_name="School Fee" item_amt="4000000" bank_id="117" acct_num="1216063205"' in
     80            '<input type="hidden" name="amount" value="8025000" />' in
     81            self.browser.contents)
     82        self.assertTrue(
     83            'item_name="School Fee" item_amt="8000000" bank_id="117" acct_num="1216063205"' in
    8384            self.browser.contents)
    8485
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r16802 r16835  
    106106                            ), None
    107107                    amount = getattr(certificate, 'school_fee_2', 0.0)
     108            if amount and not local(student):
     109                amount += 40000
    108110        elif category == 'clearance':
    109111            try:
Note: See TracChangeset for help on using the changeset viewer.