From bee7c48e3ffea09e815082a3ce948903dd9ef843 Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 14 Aug 2023 10:36:12 -0700 Subject: [PATCH] inverts credit amounts. --- src/clj/auto_ap/import/plaid.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/auto_ap/import/plaid.clj b/src/clj/auto_ap/import/plaid.clj index 8b92acf0..4f031c3e 100644 --- a/src/clj/auto_ap/import/plaid.clj +++ b/src/clj/auto_ap/import/plaid.clj @@ -37,7 +37,7 @@ :id #_{:clj-kondo/ignore [:unresolved-var]} (di/sha-256 (:transaction_id t)) :amount (if (= "credit" (:type (:account t))) - (double (:amount t)) + (- (double (:amount t))) (- (double (:amount t)))) :date (coerce/to-date (atime/parse (or (:authorized_date t) (:date t)) atime/iso-date)) :status "POSTED"}