Changeset 10273 for main


Ignore:
Timestamp:
3 Jun 2013, 12:30:21 (12 years ago)
Author:
Henrik Bettermann
Message:

Use round method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/helpers.py

    r10272 r10273  
    8585        notify(grok.ObjectModifiedEvent(payment))
    8686        return False, msg, log
    87     if int(100*payment.r_amount_approved) != int(100*payment.amount_auth):
     87    if round(payment.r_amount_approved, 2) != round(payment.amount_auth, 2):
    8888        msg = _('Callback amount does not match.')
    8989        log = 'wrong callback for %s payment %s: %s' % (
Note: See TracChangeset for help on using the changeset viewer.