diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-08-17 17:44:59 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-08-17 17:44:59 +0000 |
commit | a70fc5b8e8d3507aff5d0ea324c35d861452b797 (patch) | |
tree | 79474a521a06ff4410380de4c43b7f96f7fcbbc4 /sql | |
parent | 25b0a7329494aebe8d420f3d63f4fdec88c29e0c (diff) |
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
Diffstat (limited to 'sql')
-rw-r--r-- | sql/fixes/ar_ap_summary_fix_1.2.14.sql | 2 |
1 files changed, 1 insertions, 1 deletions
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') |