summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/fixes/ar_ap_summary_fix_1.2.14.sql2
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')