Ignore:
Timestamp:
6 Dec 2010, 12:18:39 (14 years ago)
Author:
Henrik Bettermann
Message:

Avoid error:

Transaction spilt Pre-processing error : Cumulative total of payment detail is not equal to the expected total amount. {7739251291635584208,930000, 900000, 9000}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_futminna/getInterswitchParams.py

    r5603 r5606  
    3636    d['pay_item_name'] = "FUT Minna %(type_description)s" % d
    3737    if student_record.level  in ('200','300','400','500') and student_record.faculty in ('EET','SET','AAT','ICT','EMT'):
    38         d['amount'] = '9000'
     38        d['amount'] = 9000
    3939    else:
    40         d['amount'] = '7000'
     40        d['amount'] = 7000
    4141    d['category'] = 'hostel_maintenance'
    4242    d['item'] = paytype
     
    4848    xmldict['department'] = student_record.department
    4949    xmldict['faculty'] = student_record.faculty
    50     xmldict['fut_amount'] = "%s" % d['amount']
     50    xmldict['fut_amount'] = "%d" % int(100*d['amount'])
    5151   
    5252    xmltext = """<payment_item_detail>
Note: See TracChangeset for help on using the changeset viewer.