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

SF.net SVN: ledger-smb:[6881] branches/1.3/LedgerSMB/AA.pm



Revision: 6881
          http://sourceforge.net/p/ledger-smb/code/6881
Author:   ehuelsmann
Date:     2014-02-20 09:16:22 +0000 (Thu, 20 Feb 2014)
Log Message:
-----------
Fix AR/AP->Reports->transactions(summary) report: don't include
  closed-off-by-a-sub-cent-amount transactions in the open items list.

Modified Paths:
--------------
    branches/1.3/LedgerSMB/AA.pm

Modified: branches/1.3/LedgerSMB/AA.pm
===================================================================
--- branches/1.3/LedgerSMB/AA.pm	2014-02-20 03:58:27 UTC (rev 6880)
+++ branches/1.3/LedgerSMB/AA.pm	2014-02-20 09:16:22 UTC (rev 6881)
@@ -1141,8 +1141,8 @@
 
     if ( $form->{open} || $form->{closed} ) {
         unless ( $form->{open} && $form->{closed} ) {
-            $where .= " AND pd.due <> 0" if ( $form->{open} );
-            $where .= " AND pd.due = 0"  if ( $form->{closed} );
+            $where .= " AND abs(pd.due) >= 0.01" if ( $form->{open} );
+            $where .= " AND abs(pd.due) < 0.01"  if ( $form->{closed} );
         }
     }
 

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


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits