Ignore:
Timestamp:
5 Oct 2020, 13:19:29 (4 years ago)
Author:
Henrik Bettermann
Message:

provider_amt has already to be stored when creating the payment ticket. Otherwise students will go to the bank and pay without this fee.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py

    r16257 r16270  
    247247        payment = createObject(u'waeup.StudentOnlinePayment')
    248248        timestamp = ("%d" % int(time()*10000))[1:]
     249        if category in (
     250            'registration', 'required_combi', 'pg_other'):
     251            payment.provider_amt = 5000.0
     252        if category in (
     253            'schoolfee', 'schoolfee40') and student.is_jupeb:
     254            payment.provider_amt = 5000.0
    249255        payment.p_id = "p%s" % timestamp
    250256        payment.p_category = category
Note: See TracChangeset for help on using the changeset viewer.