diff --git a/src/clj/auto_ap/ssr/transaction/common.clj b/src/clj/auto_ap/ssr/transaction/common.clj index 9d9abeec..210bd3d5 100644 --- a/src/clj/auto_ap/ssr/transaction/common.clj +++ b/src/clj/auto_ap/ssr/transaction/common.clj @@ -36,9 +36,9 @@ [:import-batch-id {:optional true} [:maybe entity-id]] [:unresolved {:optional true} [:maybe [:boolean {:decode/string {:enter #(cond (= % "on") true - (= % "") false - :else - (boolean %))}}]]] + (= % "true") true + (boolean? %) % + :else false)}}]]] [:description {:optional true} [:maybe [:string {:decode/string strip}]]] [:memo {:optional true} [:maybe [:string {:decode/string strip}]]] [:vendor {:optional true :default nil} [:maybe [:entity-map {:pull [:db/id :vendor/name]}]]] @@ -50,9 +50,9 @@ [:location {:optional true} [:maybe [:string {:decode/string strip}]]] [:potential-duplicates {:optional true} [:maybe [:boolean {:decode/string {:enter #(cond (= % "on") true - (= % "") false - :else - (boolean %))}}]]] + (= % "true") true + (boolean? %) % + :else false)}}]]] #_[:status {:optional true} [:maybe (ref->enum-schema "transaction-status")]] [:exact-match-id {:optional true} [:maybe entity-id]] [:all-selected {:optional true :default nil} [:maybe :boolean]]