summaryrefslogtreecommitdiff
path: root/LedgerSMB/AA.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/AA.pm')
-rw-r--r--LedgerSMB/AA.pm2
1 files changed, 1 insertions, 1 deletions
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|