From a70fc5b8e8d3507aff5d0ea324c35d861452b797 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sun, 17 Aug 2008 17:44:59 +0000 Subject: Correcting issue with ar_ap_summary_data.sql git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@2276 4979c152-3d1c-0410-bac9-87ea11338e46 --- sql/fixes/ar_ap_summary_fix_1.2.14.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/fixes/ar_ap_summary_fix_1.2.14.sql b/sql/fixes/ar_ap_summary_fix_1.2.14.sql index e1c11d8d..f7830660 100644 --- a/sql/fixes/ar_ap_summary_fix_1.2.14.sql +++ b/sql/fixes/ar_ap_summary_fix_1.2.14.sql @@ -2,7 +2,7 @@ BEGIN; UPDATE ap SET netamount = - CASE WHEN amount > 0 THEN -1 * + CASE WHEN amount > 0 THEN (select sum(amount) from acc_trans where trans_id = ap.id AND ((chart_id IN (select id from chart where link = 'AP') -- cgit v1.2.3