Ignore:
Timestamp:
4 Nov 2019, 08:21:21 (5 years ago)
Author:
Henrik Bettermann
Message:

Increase school fees.

Location:
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri
Files:
5 edited

Legend:

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

    r15322 r15747  
    6868                           self.browser.contents)
    6969        self.assertMatches(
    70             '...<span>79450.0</span>...',
     70            '...<span>80450.0</span>...',
    7171            self.browser.contents)
    7272        self.payment_url = self.browser.url
    73         self.browser.getLink("CollegePAY", index=0).click()
     73        self.browser.getLink("Pay via Interswitch", index=0).click()
    7474        self.assertMatches('...<input type="hidden" name="pay_item_id" value="103" />...',
    7575                           self.browser.contents)
     
    7878        self.assertEqual(self.student.current_mode, 'ug_ft')
    7979        self.assertMatches(
    80             '...<input type="hidden" name="amount" value="7945000" />...',
    81             self.browser.contents)
    82         self.assertMatches(
    83             '...item_name="School Fee (total)" item_amt="7945000" bank_id="7" acct_num="1019684470"...',
     80            '...<input type="hidden" name="amount" value="8045000" />...',
     81            self.browser.contents)
     82        self.assertMatches(
     83            '...item_name="School Fee (total)" item_amt="8045000" bank_id="7" acct_num="1019684470"...',
    8484            self.browser.contents)
    8585
     
    9494        self.student['payments']['xyz'] = acc_payment
    9595        self.browser.open(self.payments_path + '/xyz')
    96         self.browser.getLink("CollegePAY", index=0).click()
     96        self.browser.getLink("Pay via Interswitch", index=0).click()
    9797        self.assertMatches('...<input type="hidden" name="pay_item_id" value="102" />...',
    9898                           self.browser.contents)
     
    106106        acc_payment.creation_date -= delta
    107107        self.browser.open(self.payments_path + '/xyz')
    108         self.browser.getLink("CollegePAY", index=0).click()
     108        self.browser.getLink("Pay via Interswitch", index=0).click()
    109109        self.assertMatches(
    110110            '...This payment ticket is too old. Please create a new ticket...',
     
    113113        acc_payment.creation_date += delta
    114114        self.browser.open(self.payments_path + '/xyz')
    115         self.browser.getLink("CollegePAY", index=0).click()
     115        self.browser.getLink("Pay via Interswitch", index=0).click()
    116116        self.assertMatches('...Total Amount Authorized:...',
    117117                           self.browser.contents)
     
    232232    def test_interswitch_form(self):
    233233        # Manager can access InterswitchForm
    234         self.browser.getLink("CollegePAY", index=0).click()
     234        self.browser.getLink("Pay via Interswitch", index=0).click()
    235235        self.assertMatches('...Total Amount Authorized:...',
    236236                           self.browser.contents)
     
    241241        self.applicant.values()[0].creation_date -= delta
    242242        self.browser.open(self.payment_url)
    243         self.browser.getLink("CollegePAY", index=0).click()
     243        self.browser.getLink("Pay via Interswitch", index=0).click()
    244244        self.assertMatches(
    245245            '...This payment ticket is too old. Please create a new ticket...',
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_browser.py

    r14941 r15747  
    7474        self.assertEqual(self.student['payments'].values()[0].p_category, 'schoolfee_1')
    7575        self.assertEqual(self.student['payments'].values()[1].p_category, 'schoolfee_2')
    76         # 79200 / 2 + 250
    77         self.assertEqual(self.student['payments'].values()[0].amount_auth, 39850.0)
    78         self.assertEqual(self.student['payments'].values()[1].amount_auth, 39850.0)
     76        # 80200 / 2 + 250
     77        self.assertEqual(self.student['payments'].values()[0].amount_auth, 40350.0)
     78        self.assertEqual(self.student['payments'].values()[1].amount_auth, 40350.0)
    7979        # The  two payments belong to the same session and level.
    8080        self.assertEqual(self.student['payments'].values()[0].p_session, 2004)
     
    104104        self.assertEqual(self.student.current_level, 200)
    105105        self.assertEqual(self.student.current_session, 2005)
    106         # 63100 / 2 + 250
    107         self.assertEqual(self.student['payments'].values()[2].amount_auth, 37600.0)
    108         self.assertEqual(self.student['payments'].values()[3].amount_auth, 37600.0)
     106        # 73700 / 2 + 250
     107        self.assertEqual(self.student['payments'].values()[2].amount_auth, 37100.0)
     108        self.assertEqual(self.student['payments'].values()[3].amount_auth, 37100.0)
    109109        # The last two payments belong to the same session and level.
    110110        self.assertEqual(self.student['payments'].values()[2].p_session, 2005)
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_export.py

    r15670 r15747  
    103103        result = open(self.outfile, 'rb').read()
    104104        self.assertMatches(
    105             'ac,amount_auth,creation_date,gateway_amt,p_category,p_combi,p_current,'
     105            'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_current,'
    106106            'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,'
    107107            'r_amount_approved,r_card_num,r_code,r_company,r_desc,'
    108108            'r_pay_reference,thirdparty_amt,student_id,state,'
    109109            'current_session\r\n'
    110             '666,12.12,%s-04-01 13:12:01#,,schoolfee,[],1,my-id,p-item,'
     110            '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,'
    111111            '100,%s,paid,%s-04-01 14:12:01#,,12.12,'
    112112            '789,r-code,interswatch,,,,A111111,created,2012\r\n'
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/tests/test_utils.py

    r15443 r15747  
    3131        self.assertEqual(payment.p_level, 100)
    3232        self.assertEqual(payment.p_session, 2016)
    33         self.assertEqual(payment.amount_auth, 79450.0)
     33        self.assertEqual(payment.amount_auth, 80450.0)
    3434        self.assertEqual(payment.p_item, u'CERT1')
    3535        self.assertEqual(error, None)
     
    3838        self.assertEqual(payment.p_level, 100)
    3939        self.assertEqual(payment.p_session, 2016)
    40         self.assertEqual(payment.amount_auth, 39850.0)
     40        self.assertEqual(payment.amount_auth, 40350.0)
    4141        self.assertEqual(payment.p_item, u'CERT1')
    4242        self.assertEqual(error, None)
     
    4545        self.assertEqual(payment.p_level, 100)
    4646        self.assertEqual(payment.p_session, 2016)
    47         self.assertEqual(payment.amount_auth, 39850.0)
     47        self.assertEqual(payment.amount_auth, 40350.0)
    4848        self.assertEqual(payment.p_item, u'CERT1')
    4949        self.assertEqual(error, None)
     
    5555        self.student.lga = 'delta_burutu'
    5656        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    57         self.assertEqual(payment.amount_auth, 69450.0)
     57        self.assertEqual(payment.amount_auth, 70450.0)
    5858        error, payment = utils.setPaymentDetails('clearance',self.student)
    5959        self.assertEqual(payment.amount_auth, 20300.0)
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/utils.py

    r15680 r15747  
    4343FEES_VALUES = (
    4444      ( # 100      110      200      210      300      310      400      410     500  999
    45         (42200.0, 42200.0, 39700.0, 39700.0, 37200.0, 37200.0, 0.0, 0.0, 0.0, 0.0), # nce_ft
    46         (55200.0, 55200.0, 49200.0, 49200.0, 52200.0, 52200.0, 42200.0, 42200.0, 0.0, 0.0), # nce_pt
    47         (69200.0, 69200.0, 64700.0, 64700.0, 67700.0, 67700.0, 62100.0, 62100.0, 0.0, 0.0), # ug_ft
    48         (33000.0, 33000.0, 28000.0, 28000.0, 28000.0, 28000.0, 20000.0, 20000.0, 0.0, 0.0), # nce_we_pt
     45        (43200.0, 43200.0, 42700.0, 42700.0, 37200.0, 37200.0, 0.0, 0.0, 0.0, 0.0), # nce_ft
     46        (55200.0, 55200.0, 49200.0, 49200.0, 53200.0, 53200.0, 49200.0, 49200.0, 0.0, 0.0), # nce_pt
     47        (70200.0, 70200.0, 63700.0, 63700.0, 70700.0, 70700.0, 61700.0, 61700.0, 0.0, 0.0), # ug_ft
     48        (33200.0, 33200.0, 28000.0, 28000.0, 32000.0, 32000.0, 28000.0, 28000.0, 0.0, 0.0), # nce_we_pt
    4949      ), # local
    5050      ( #
    51         (54800.0, 54800.0, 52300.0, 52300.0, 49800.0, 49800.0, 0.0, 0.0, 0.0, 0.0), # nce_ft
    52         (55200.0, 55200.0, 49200.0, 49200.0, 52200.0, 52200.0, 42200.0, 42200.0, 0.0, 0.0), # nce_pt
    53         (79200.0, 79200.0, 74700.0, 74700.0, 77700.0, 77700.0, 62100.0, 62100.0, 0.0, 0.0), # ug_ft
    54         (33000.0, 33000.0, 28000.0, 28000.0, 28000.0, 28000.0, 20000.0, 20000.0, 0.0, 0.0), # nce_we_pt
     51        (55800.0, 55800.0, 54800.0, 54800.0, 49800.0, 49800.0, 0.0, 0.0, 0.0, 0.0), # nce_ft
     52        (55200.0, 55200.0, 49200.0, 49200.0, 53200.0, 53200.0, 49200.0, 49200.0, 0.0, 0.0), # nce_pt
     53        (80200.0, 80200.0, 73700.0, 73700.0, 80700.0, 80700.0, 71700.0, 71700.0, 0.0, 0.0), # ug_ft
     54        (33200.0, 33200.0, 28000.0, 28000.0, 32000.0, 32000.0, 28000.0, 28000.0, 0.0, 0.0), # nce_we_pt
    5555      ), # non-local
    5656    )
Note: See TracChangeset for help on using the changeset viewer.