From b372f70f12da234fc7934e60aa19e6101f5a25b1 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Thu, 27 Sep 2018 14:56:12 -0400 Subject: [PATCH] wrong file edited --- schema/triggers/gl_insert.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schema/triggers/gl_insert.sql b/schema/triggers/gl_insert.sql index 0aff50a..45cdcdb 100644 --- a/schema/triggers/gl_insert.sql +++ b/schema/triggers/gl_insert.sql @@ -30,9 +30,9 @@ BEGIN acct ,fspr ,dur - --put a negative in front to negate the initial debit/credit assignment - ,coalesce(-sum(amount) FILTER (WHERE amount > 0),0) debits - ,coalesce(-sum(amount) FILTER (WHERE amount < 0),0) credits + put a negative in front to negate the initial debit/credit assignment + ,coalesce(sum(amount) FILTER (WHERE amount > 0),0) debits + ,coalesce(sum(amount) FILTER (WHERE amount < 0),0) credits FROM ins INNER JOIN evt.fspr f ON