(cloud) missed a couple bank account items
This commit is contained in:
@@ -74,7 +74,15 @@
|
|||||||
(map cleanse)))
|
(map cleanse)))
|
||||||
|
|
||||||
(defn get-minimal []
|
(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]]
|
:where [?e :client/name]]
|
||||||
(dc/db conn))
|
(dc/db conn))
|
||||||
(map first)
|
(map first)
|
||||||
|
|||||||
@@ -20,7 +20,8 @@
|
|||||||
(cond-> [:id :name :code :email :locations :feature-flags
|
(cond-> [:id :name :code :email :locations :feature-flags
|
||||||
[:emails [:id :email :description]]
|
[:emails [:id :email :description]]
|
||||||
[:bank-accounts [:id :code :bank-name :name :type :visible
|
[: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]
|
(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
|
(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
|
||||||
|
|||||||
Reference in New Issue
Block a user