Adds validation for external ledger import
This commit is contained in:
0
src/cljs/auto_ap/views/components/popper.cljs
Normal file
0
src/cljs/auto_ap/views/components/popper.cljs
Normal file
@@ -22,8 +22,7 @@
|
||||
[grid/cell {} (date->str date) ]
|
||||
[grid/cell {} ]
|
||||
[grid/cell {:class "has-text-right"} (nf amount )]
|
||||
[grid/cell {:class "has-text-right"} (nf amount )]
|
||||
#_[grid/cell {}]]
|
||||
[grid/cell {:class "has-text-right"} (nf amount )]]
|
||||
[:<>
|
||||
(for [{:keys [debit credit location account id running-balance]} line-items
|
||||
:let [account (or (accounts-by-id (:id account))
|
||||
@@ -35,7 +34,8 @@
|
||||
[grid/cell {} ]
|
||||
[grid/cell {} ]
|
||||
[grid/cell {} (if (:name account)
|
||||
(str location ": " (:name account))
|
||||
[:span.has-tooltip-arrow.has-tooltip-right {:data-tooltip (str "Balance as of this entry: " (nf running-balance ))}
|
||||
(str location ": " (:name account)) ]
|
||||
[:i "unknown"])]
|
||||
[grid/cell {:class "has-text-right"} (when debit (nf debit ))]
|
||||
[grid/cell {:class "has-text-right"} (when credit (nf credit ))]
|
||||
|
||||
Reference in New Issue
Block a user