From 653774e2a58941ba5775d3e5cb075c1b85be351c Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Thu, 6 Apr 2023 15:00:21 -0700 Subject: [PATCH] (cloud) missed a couple bank account items --- src/clj/auto_ap/datomic/clients.clj | 10 +++++++++- src/cljs/auto_ap/events.cljs | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/clj/auto_ap/datomic/clients.clj b/src/clj/auto_ap/datomic/clients.clj index 22371d15..a12ccffe 100644 --- a/src/clj/auto_ap/datomic/clients.clj +++ b/src/clj/auto_ap/datomic/clients.clj @@ -74,7 +74,15 @@ (map cleanse))) (defn get-minimal [] - (->> (dc/q '[:find (pull ?e [:client/name :client/code :client/locations :db/id {:client/bank-accounts [{:bank-account/type [:db/ident]} :bank-account/name :bank-account/code :db/id]}]) + (->> (dc/q '[:find (pull ?e [:client/name :client/code :client/locations :db/id {:client/bank-accounts [{:bank-account/type [:db/ident]} + :bank-account/name + :bank-account/sort-order + :bank-account/bank-name + :bank-account/visible + :bank-account/current-balance + :bank-account/locations + :bank-account/code + :db/id]}]) :where [?e :client/name]] (dc/db conn)) (map first) diff --git a/src/cljs/auto_ap/events.cljs b/src/cljs/auto_ap/events.cljs index e0fbdf9f..74650cef 100644 --- a/src/cljs/auto_ap/events.cljs +++ b/src/cljs/auto_ap/events.cljs @@ -20,7 +20,8 @@ (cond-> [:id :name :code :email :locations :feature-flags [:emails [:id :email :description]] [:bank-accounts [:id :code :bank-name :name :type :visible - :locations :include-in-reports :current-balance]]])) + :locations :include-in-reports :current-balance + :sort-order]]])) (defn client-detail-query [token] (cond-> [:id :name :signature-file :code :email :matches :week-a-debits :week-a-credits :week-b-debits :week-b-credits :locations :locked-until :square-auth-token :feature-flags