[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5661] trunk/LedgerSMB/Scripts/payment.pm



Revision: 5661
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5661&view=rev
Author:   einhverfr
Date:     2013-02-14 15:08:11 +0000 (Thu, 14 Feb 2013)
Log Message:
-----------
Fixing is_zero error with payment workflow.  I can't reproduce this in 1.3, so it isn't clear why this is on;y happening in 1.4.  At this point not merging.

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/payment.pm

Modified: trunk/LedgerSMB/Scripts/payment.pm
===================================================================
--- trunk/LedgerSMB/Scripts/payment.pm	2013-02-14 14:58:32 UTC (rev 5660)
+++ trunk/LedgerSMB/Scripts/payment.pm	2013-02-14 15:08:11 UTC (rev 5661)
@@ -852,6 +852,8 @@
        
 # XXX:  This causes issues currently, so display of unhandled overpayment has
 # disabled.  Was getting numbers that didn't make a lot of sense to me. --CT
+      $due_fx ||= 0;
+      $request_topay_fx_bigfloat ||= 0;
       if ( $due_fx <  $request_topay_fx_bigfloat) {
          # We need to store all the overpayments so we can use it on the screen
          $unhandled_overpayment = $request->round_amount($unhandled_overpayment + $request_topay_fx_bigfloat - $due_fx );

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.