Fixes issues customers have run into with new experience.
This commit is contained in:
@@ -77,3 +77,20 @@
|
|||||||
"options" {"account_ids" [account-id]}})})
|
"options" {"account_ids" [account-id]}})})
|
||||||
:body))
|
:body))
|
||||||
|
|
||||||
|
(comment
|
||||||
|
(require '[datomic.api :as dc])
|
||||||
|
|
||||||
|
(require '[auto-ap.datomic :refer [conn]])
|
||||||
|
|
||||||
|
(doto (dc/q '[:find (pull ?ba [{:bank-account/plaid-account [* {:plaid-item/_accounts [*]}]}])
|
||||||
|
:in $ ?ba]
|
||||||
|
(dc/db conn)
|
||||||
|
[:bank-account/code "NGHW-CB5029"])
|
||||||
|
clojure.pprint/pprint)
|
||||||
|
(require 'auto-ap.time-reader)
|
||||||
|
|
||||||
|
(clojure.pprint/pprint
|
||||||
|
(get-transactions "access-production-c0e322fa-f33d-4806-bc42-5fc883fb1ba4" "VZ8Y1azZMdhoYo9MQABrfpgz4jm4kPtakyxN5" #clj-time/date-time "2024-03-15" #clj-time/date-time "2024-03-30"))
|
||||||
|
(clojure.pprint/pprint (get-accounts "access-production-c0e322fa-f33d-4806-bc42-5fc883fb1ba4"))
|
||||||
|
|
||||||
|
)
|
||||||
@@ -259,7 +259,9 @@
|
|||||||
(table* grid-spec
|
(table* grid-spec
|
||||||
identity
|
identity
|
||||||
request)])
|
request)])
|
||||||
(:title grid-spec)))
|
(if (string? (:title grid-spec))
|
||||||
|
(:title grid-spec)
|
||||||
|
((:title grid-spec) request))))
|
||||||
(wrap-trim-client-ids)
|
(wrap-trim-client-ids)
|
||||||
(query-params/wrap-parse-query-params (or (:parse-query-params grid-spec)
|
(query-params/wrap-parse-query-params (or (:parse-query-params grid-spec)
|
||||||
(default-parse-query-params grid-spec)))
|
(default-parse-query-params grid-spec)))
|
||||||
|
|||||||
@@ -322,7 +322,8 @@
|
|||||||
{})
|
{})
|
||||||
(vals)))
|
(vals)))
|
||||||
all-credits-or-debits (or (every? #(<= % 0.0) vendor-totals)
|
all-credits-or-debits (or (every? #(<= % 0.0) vendor-totals)
|
||||||
(every? #(>= % 0.0) vendor-totals))]
|
(every? #(>= % 0.0) vendor-totals))
|
||||||
|
total (reduce + 0.0 vendor-totals)]
|
||||||
|
|
||||||
|
|
||||||
[:div {:hx-target "this"
|
[:div {:hx-target "this"
|
||||||
@@ -349,7 +350,9 @@
|
|||||||
:class "relative"}
|
:class "relative"}
|
||||||
(if (> (count (:ids params)) 0)
|
(if (> (count (:ids params)) 0)
|
||||||
|
|
||||||
(str "Pay " (count (:ids params)) " invoices")
|
(format "Pay %d invoices ($%,.2f)"
|
||||||
|
(count (:ids params))
|
||||||
|
(or total 0.0))
|
||||||
"Pay")
|
"Pay")
|
||||||
(when (or (= 0 (count ids))
|
(when (or (= 0 (count ids))
|
||||||
(> selected-client-count 1))
|
(> selected-client-count 1))
|
||||||
@@ -872,7 +875,8 @@
|
|||||||
:body (mm/default-step-body
|
:body (mm/default-step-body
|
||||||
{}
|
{}
|
||||||
[:div.flex.flex-col.space-y-2
|
[:div.flex.flex-col.space-y-2
|
||||||
(for [ba (:bank-accounts linear-wizard)]
|
(for [ba (:bank-accounts linear-wizard)
|
||||||
|
:when (:bank-account/visible ba)]
|
||||||
(bank-account-card ba can-handwrite? credit-only?))])
|
(bank-account-card ba can-handwrite? credit-only?))])
|
||||||
:footer
|
:footer
|
||||||
nil
|
nil
|
||||||
@@ -1133,10 +1137,7 @@
|
|||||||
(->> (dc/q '[:find ?i
|
(->> (dc/q '[:find ?i
|
||||||
:in $ [?i ...]
|
:in $ [?i ...]
|
||||||
:where [?i :invoice/status :invoice-status/unpaid]
|
:where [?i :invoice/status :invoice-status/unpaid]
|
||||||
[?i :invoice/client ?c]
|
[?i :invoice/client ?c] ]
|
||||||
[(get-else $ ?c :client/locked-until #inst "2000-01-01") ?lu]
|
|
||||||
[?i :invoice/date ?d]
|
|
||||||
[(>= ?d ?lu)]]
|
|
||||||
(dc/db conn)
|
(dc/db conn)
|
||||||
ids)
|
ids)
|
||||||
(map first)))
|
(map first)))
|
||||||
|
|||||||
Reference in New Issue
Block a user