shows pending balance
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
{:bank-account/intuit-bank-account [:intuit-bank-account/current-balance
|
||||
[:intuit-bank-account/last-synced :xform clj-time.coerce/from-date]]}
|
||||
{:bank-account/yodlee-account [:yodlee-account/available-balance
|
||||
:yodlee-account/pending-balance
|
||||
[:yodlee-account/last-synced :xform clj-time.coerce/from-date]]}
|
||||
{:bank-account/plaid-account [:plaid-account/balance
|
||||
[:plaid-account/last-synced :xform clj-time.coerce/from-date]]}]}]
|
||||
@@ -71,6 +72,11 @@
|
||||
(-> b :bank-account/yodlee-account :yodlee-account/available-balance)
|
||||
(-> b :bank-account/plaid-account :plaid-account/balance)
|
||||
0.0))]
|
||||
(when-let [pending-balance (-> b :bank-account/yodlee-account :yodlee-account/available-balance)]
|
||||
(list
|
||||
[:div (str n " Pending Balance")]
|
||||
[:div.text-right (format "$%,.2f" pending-balance)]))
|
||||
|
||||
[:div.text-xs.text-gray-400.text-right (or (some-> (:bank-account/intuit-bank-account b)
|
||||
(:intuit-bank-account/last-synced)
|
||||
(atime/unparse-local atime/standard-time)
|
||||
@@ -215,7 +221,6 @@
|
||||
"Income: " (format "$%,.2f" sales)]
|
||||
[:div
|
||||
"Expenses: " (format "$%,.2f" expenses)])))))
|
||||
|
||||
(defn tasks-card [request]
|
||||
(html-response
|
||||
(com/card {:class "w-full h-full p-4"}
|
||||
|
||||
Reference in New Issue
Block a user