Ignore:
Timestamp:
21 Mar 2017, 12:25:55 (8 years ago)
Author:
Henrik Bettermann
Message:

The entry_mode determines the acceptance fee.

Location:
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students
Files:
2 edited

Legend:

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

    r14455 r14639  
    1515
    1616    def test_set_payment_details(self):
    17         self.student['studycourse'].certificate.study_mode = 'ug_ft'
     17        self.student['studycourse'].entry_mode = 'ug_ft'
    1818        self.student.nationality = u'NG'
    1919        self.student.lga = 'ebonyi_ukaba'
     
    5959        self.assertEqual(payment.amount_auth, 20300.0)
    6060
    61         self.student['studycourse'].certificate.study_mode = 'nce_ft'
     61        self.student['studycourse'].entry_mode = 'nce_ft'
    6262        error, payment = utils.setPaymentDetails('clearance',self.student)
    6363        self.assertEqual(payment.amount_auth, 10300.0)
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/utils.py

    r14589 r14639  
    106106            except (AttributeError, TypeError):
    107107                return _('Study course data are incomplete.'), None
    108             if student.current_mode == 'nce_we_pt':
     108            if student.entry_mode == 'nce_we_pt':
    109109                amount = academic_session.clearance_fee_3
    110             elif student.current_mode == 'ug_ft':
     110            elif student.entry_mode == 'ug_ft':
    111111                amount = academic_session.clearance_fee_2
    112112            else:
Note: See TracChangeset for help on using the changeset viewer.