Ignore:
Timestamp:
27 Sep 2017, 09:04:54 (7 years ago)
Author:
Henrik Bettermann
Message:

Add staff_rebate and rebate_amount fields.

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

Legend:

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

    r13741 r14853  
    9494        )
    9595
     96    staff_rebate = schema.Bool(
     97        title = _(u'Staff Rebate Payment'),
     98        default = False,
     99        required = False,
     100        )
     101
     102    rebate_amount = schema.Float(
     103        title = _(u'Rebate'),
     104        default = 0.0,
     105        required = False,
     106        readonly = False,
     107        )
     108
    96109ICustomStudentOnlinePayment['p_level'].order = ICustomStudentOnlinePayment[
    97110    'p_session'].order
     111ICustomStudentOnlinePayment['rebate_amount'].order = ICustomStudentOnlinePayment[
     112    'amount_auth'].order + 1
    98113
    99114class ICustomCourseTicket(INigeriaCourseTicket):
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py

    r14421 r14853  
    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,'
    108             'r_pay_reference,thirdparty_amt,student_id,state,'
     108            'r_pay_reference,rebate_amount,staff_rebate,thirdparty_amt,student_id,state,'
    109109            'current_session\r\n'
    110110            '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,'
    112             '789,r-code,interswatch,,,,A111111,created,2012\r\n'
     112            '789,r-code,interswatch,,,,,,A111111,created,2012\r\n'
    113113            % (curr_year-6, curr_year-6, curr_year-6), result
    114114            )
Note: See TracChangeset for help on using the changeset viewer.