Ignore:
Timestamp:
9 Nov 2021, 15:57:09 (3 years ago)
Author:
Henrik Bettermann
Message:

Change ratio.

Location:
main/kofacustom.edocons/trunk/src/kofacustom/edocons
Files:
3 edited

Legend:

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

    r16704 r16709  
    8080            self.browser.contents)
    8181        self.assertTrue(
    82             'item_name="School Fee (total amount)" item_amt="4000000" bank_id="00" acct_num="00000000"' in
     82            'item_name="School Fee (total amount)" item_amt="4000000" bank_id="31" acct_num="1489560452"' in
    8383            self.browser.contents)
    8484        self.browser.open(self.payments_path + '/addop')
     
    9494                           self.browser.contents)
    9595        self.assertTrue(
    96             '<span>24000.0</span>' in self.browser.contents)
     96            '<span>26400.0</span>' in self.browser.contents)
    9797        self.payment_url = self.browser.url
    9898        self.browser.getLink("Pay via Interswitch CollegePAY", index=0).click()
     
    101101        self.assertEqual(self.student.current_mode, 'ug_ft')
    102102        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
     103            '<input type="hidden" name="amount" value="2670000" />' in
     104            self.browser.contents)
     105        self.assertTrue(
     106            'item_name="School Fee (66% - 1st instalment)" item_amt="2640000" bank_id="31" acct_num="1489560452"' in
    107107            self.browser.contents)
    108108
  • main/kofacustom.edocons/trunk/src/kofacustom/edocons/students/utils.py

    r16704 r16709  
    7373            else:
    7474                if category == 'secondinstal':
    75                     amount = 0.4 * getattr(certificate, 'school_fee_1', 0.0)
     75                    amount = 0.34 * getattr(certificate, 'school_fee_1', 0.0)
    7676                else:
    7777                    if student.state == CLEARED:
     
    101101                        amount = getattr(certificate, 'school_fee_1', 0.0)
    102102                    if category == 'schoolfee_1':
    103                         amount *= 0.6
     103                        amount *= 0.66
    104104        elif category == 'clearance':
    105105            try:
  • main/kofacustom.edocons/trunk/src/kofacustom/edocons/utils/utils.py

    r16705 r16709  
    2626    PAYMENT_CATEGORIES = {
    2727        'schoolfee': 'School Fee (total amount)',
    28         'schoolfee_1': 'School Fee (60% - 1st instalment)',
    29         'secondinstal': 'School Fee (40% - 2nd instalment)',
     28        'schoolfee_1': 'School Fee (66% - 1st instalment)',
     29        'secondinstal': 'School Fee (34% - 2nd instalment)',
    3030        'clearance': 'Acceptance Fee (not applicable)',
    3131        #'bed_allocation': 'Bed Allocation Fee',
     
    4242    SELECTABLE_PAYMENT_CATEGORIES = {
    4343        'schoolfee': 'School Fee (total amount)',
    44         'schoolfee_1': 'School Fee (60% - 1st instalment)',
    45         'secondinstal': 'School Fee (40% - 2nd instalment)',
     44        'schoolfee_1': 'School Fee (66% - 1st instalment)',
     45        'secondinstal': 'School Fee (34% - 2nd instalment)',
    4646        }
    4747
Note: See TracChangeset for help on using the changeset viewer.