Ignore:
Timestamp:
24 Apr 2012, 15:37:51 (13 years ago)
Author:
Henrik Bettermann
Message:

Remove surcharge configuration completely.

Implement application fee and school fee payments via Interswitch (part 3)

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r8259 r8263  
    181181
    182182    def _fillCustomFields(self, payment, pay_details):
    183         payment.surcharge_1 = pay_details['surcharge_1']
    184         payment.surcharge_2 = pay_details['surcharge_2']
    185         payment.surcharge_3 = pay_details['surcharge_3']
     183        # No custom fields at the moment
    186184        return payment
    187185
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r8247 r8263  
    2323from waeup.uniben.interfaces import MessageFactory as _
    2424
    25 def get_school_fee(student, surcharge):
     25def get_school_fee(student):
    2626    study_mode = student['studycourse'].certificate.study_mode
    2727    entry_mode = student['studycourse'].entry_mode
     
    3434        # fresh
    3535        if state == CLEARED:
    36             return 40000.0 - surcharge
     36            return 40000.0
    3737        # returning
    3838        elif state == RETURNING:
    39             return 20000.0 - surcharge
     39            return 20000.0
    4040        else:
    4141            return 0.0
     
    8888    def getPaymentDetails(self, category, student):
    8989        d = {}
    90         d['surcharge_1'] = d['surcharge_2'] = d['surcharge_3'] = 0.0
    9190        d['p_item'] = u''
    9291        d['amount'] = 0.0
     
    111110            d['amount'] = academic_session.clearance_fee
    112111        elif category == 'schoolfee':
    113             d['surcharge_1'] = academic_session.surcharge_1
    114             d['surcharge_2'] = academic_session.surcharge_2
    115             d['amount'] = get_school_fee(student, d['surcharge_1'] + d['surcharge_2'])
     112            d['amount'] = get_school_fee(student)
    116113            code = student['studycourse'].certificate.code
    117114            d['p_item'] = code
Note: See TracChangeset for help on using the changeset viewer.