Added yodlee account balances
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
[:location-matches [:id :location :match]]
|
||||
[:bank-accounts [:id :start-date :code :number :bank-name :bank-code :check-number :name :routing :type :sort-order :visible :yodlee-account-id
|
||||
[:yodlee-account [:name :id :number]]
|
||||
:locations :include-in-reports :current-balance] ]
|
||||
:locations :include-in-reports :current-balance :yodlee-balance-old] ]
|
||||
[:address [:street1 :street2 :city :state :zip]]
|
||||
[:forecasted-transactions [:id :amount :identifier :day-of-month]]]
|
||||
(= "admin" (or (get (jwt->data token) "role") (get (jwt->data token) "user/role")) ) (conj [:yodlee-provider-accounts [:id [:accounts [:id :name :number :available-balance]]]])))
|
||||
|
||||
@@ -34,4 +34,10 @@
|
||||
]
|
||||
(:name ba) (when (and (:current-balance ba)
|
||||
is-power-user?)
|
||||
(str ": " (->$ (:current-balance ba))))])]))
|
||||
(str ": " (->$ (:current-balance ba))))
|
||||
|
||||
(when (and (:yodlee-balance-old ba)
|
||||
is-power-user?)
|
||||
[:<>
|
||||
[:div.tag [:img {:src "/img/yodlee.png" :style {:width "16px" :height "16px"}}]
|
||||
(->$ (:yodlee-balance-old ba 0.00))]])])]))
|
||||
|
||||
Reference in New Issue
Block a user