From 455e6e83674e0bf8e249fd81b8141c33af1b317b Mon Sep 17 00:00:00 2001 From: einhverfr Date: Thu, 21 Feb 2008 23:14:03 +0000 Subject: Changing AP/AR Oustanding Reports to Hide SL Legacy Rounding Errors. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2076 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/AA.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm index 3d02b55f..80d67a08 100644 --- a/LedgerSMB/AA.pm +++ b/LedgerSMB/AA.pm @@ -817,7 +817,7 @@ sub transactions { a.amount, a.terms, a.notes, a.shipvia, a.shippingpoint, vce.name, vc.meta_number, a.entity_id, a.till, ex.$buysell, d.description, a.ponumber, a.invoice, a.datepaid $acc_trans_fields - HAVING a.amount::numeric(15,2) <> (a.amount::numeric(15,2) - sum(acs.amount))::numeric(15,2) |; + HAVING abs(a.amount - (a.amount - sum(acs.amount))) > 0.005 |; } else { $query = qq| -- cgit v1.2.3