From 013c6155b6218036582964c1f3b85b9e975f23eb Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 31 Jul 2023 17:39:27 -0700 Subject: [PATCH] adds check number to transaction form. --- src/clj/auto_ap/graphql/transactions.clj | 1 + src/cljs/auto_ap/views/pages/transactions/common.cljs | 1 + src/cljs/auto_ap/views/pages/transactions/form.cljs | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/src/clj/auto_ap/graphql/transactions.clj b/src/clj/auto_ap/graphql/transactions.clj index 8fe56b5d..eee972dd 100644 --- a/src/clj/auto_ap/graphql/transactions.clj +++ b/src/clj/auto_ap/graphql/transactions.clj @@ -551,6 +551,7 @@ :payment {:type :payment} :expected_deposit {:type :expected_deposit} :plaid_merchant {:type :plaid_merchant} + :check_number {:type 'Int} :vendor {:type :vendor} :bank_account {:type :bank_account} :date {:type 'String} diff --git a/src/cljs/auto_ap/views/pages/transactions/common.cljs b/src/cljs/auto_ap/views/pages/transactions/common.cljs index c5343d7e..fba49e12 100644 --- a/src/cljs/auto_ap/views/pages/transactions/common.cljs +++ b/src/cljs/auto_ap/views/pages/transactions/common.cljs @@ -8,6 +8,7 @@ :amount :location :approval-status + :check-number [:matched-rule [:note :id]] [:vendor [:name :id]] [:accounts [:id :amount :location [:account [:name :id :location :numeric-code]]]] diff --git a/src/cljs/auto_ap/views/pages/transactions/form.cljs b/src/cljs/auto_ap/views/pages/transactions/form.cljs index 40de83f8..4c68bb53 100644 --- a/src/cljs/auto_ap/views/pages/transactions/form.cljs +++ b/src/cljs/auto_ap/views/pages/transactions/form.cljs @@ -59,6 +59,7 @@ (forms/start-form db ::form (-> which (select-keys [:vendor :amount :payment :client :description-original + :check-number :yodlee-merchant :id :potential-payment-matches :plaid-merchant :forecast-match :date @@ -360,6 +361,10 @@ "Description" [:input.input {:type "text" :disabled "disabled"}]] + [form-builder/field-v2 {:field [:check-number]} + "Check Number" + [:input.input {:type "text" + :disabled "disabled"}]] [form-builder/field-v2 {:field [:plaid-merchant :name]} "Merchant" [:input.input {:type "text"