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/students/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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)
Note: See TracChangeset for help on using the changeset viewer.