Ignore:
Timestamp:
22 Mar 2021, 10:11:09 (4 years ago)
Author:
Henrik Bettermann
Message:

Add Microsoft Fee to schoolfee.

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

Legend:

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

    r16418 r16421  
    3030from kofacustom.dspg.applicants.interfaces import ICustomApplicantOnlinePayment
    3131from kofacustom.dspg.interfaces import MessageFactory as _
     32from kofacustom.dspg.students.utils import MICROSOFT_FEE
    3233
    3334PRODUCT_ID = '7269' # must be provided by Interswitch
     
    145146                tech_fee = 1200.0
    146147                if student.state == RETURNING:
    147                     microsoft_fee = 7000.0
     148                    microsoft_fee = MICROSOFT_FEE
    148149            if student.faccode == 'SPAT':
    149150                xmldict['institution_acct'] = '1015220292'
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/tests/test_utils.py

    r16338 r16421  
    110110        self.assertEqual(payment.p_level, 200)
    111111        self.assertEqual(payment.p_session, 2005)
    112         self.assertEqual(payment.amount_auth, 9999.0)
     112        self.assertEqual(payment.amount_auth, 16999.0) # now includes Microsoft Fee
    113113
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py

    r16416 r16421  
    2424from kofacustom.dspg.interfaces import MessageFactory as _
    2525
     26MICROSOFT_FEE = 7000.0
    2627
    2728def local(student):
     
    212213                        300, 310, 320, 330, 600, 610, 620, 630):
    213214                        amount -= 7000
     215                    amount += MICROSOFT_FEE
    214216                elif student.is_postgrad and student.state == PAID:
    215217                    # Returning postgraduate students also pay for the
Note: See TracChangeset for help on using the changeset viewer.