From 9d2d4e819177a118517f7a98682f0b3f6b6e4f73 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Thu, 28 Jul 2022 11:57:19 -0700 Subject: [PATCH] couple of fixes. --- src/clj/auto_ap/import/transactions.clj | 2 +- src/cljs/auto_ap/views/pages/transactions/form.cljs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clj/auto_ap/import/transactions.clj b/src/clj/auto_ap/import/transactions.clj index e12a2a79..5d231984 100644 --- a/src/clj/auto_ap/import/transactions.clj +++ b/src/clj/auto_ap/import/transactions.clj @@ -241,7 +241,7 @@ )))) (defn maybe-code [{:transaction/keys [client amount] :as transaction} apply-rules valid-locations] - (when (seq (match-transaction-to-unpaid-invoices amount client)) + (when-not (seq (match-transaction-to-unpaid-invoices amount client)) (apply-rules transaction valid-locations))) (defn transaction->txs [transaction bank-account apply-rules] diff --git a/src/cljs/auto_ap/views/pages/transactions/form.cljs b/src/cljs/auto_ap/views/pages/transactions/form.cljs index 4c5ed719..758d2fbd 100644 --- a/src/cljs/auto_ap/views/pages/transactions/form.cljs +++ b/src/cljs/auto_ap/views/pages/transactions/form.cljs @@ -23,7 +23,7 @@ (def schema (m/schema [:map - [:vendor schema/reference] + [:vendor {:optional true} [:maybe schema/reference]] [:accounts expense-accounts-field/schema] [:approval-status schema/approval-status]]))