If user chooses Imported Entry, then the note will appear. Also add ability to exclude.
This commit is contained in:
@@ -256,6 +256,7 @@
|
||||
[[:journal-entries [:id
|
||||
:source
|
||||
:original-entity
|
||||
:note
|
||||
:amount
|
||||
:alternate-description
|
||||
[:vendor
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
[drop-down drop-down-contents]]
|
||||
[auto-ap.views.components.grid :as grid]
|
||||
[auto-ap.views.pages.data-page :as data-page]
|
||||
[clojure.string :as str]
|
||||
[auto-ap.views.utils
|
||||
:refer
|
||||
[date->str dispatch-event-with-propagation nf action-cell-width]]
|
||||
@@ -15,14 +16,20 @@
|
||||
[cemerick.url :as url]
|
||||
[re-frame.core :as re-frame]))
|
||||
|
||||
(defn ledger-row [{{:keys [client vendor alternate-description status date amount id line-items source original-entity] :as i} :row
|
||||
(defn ledger-row [{{:keys [client vendor alternate-description note status date amount id line-items source original-entity] :as i} :row
|
||||
:keys [selected-client accounts-by-id bank-accounts-by-id]}]
|
||||
[:<>
|
||||
[grid/row {:class (:class i) :id id}
|
||||
(when-not selected-client
|
||||
[grid/cell {} (:name client)])
|
||||
[grid/cell {} (if vendor
|
||||
[grid/cell {} (cond
|
||||
(and (= "Imported Entry" (:name vendor)) (not (str/blank? note)))
|
||||
note
|
||||
|
||||
vendor
|
||||
(:name vendor)
|
||||
|
||||
:else
|
||||
[:i.has-text-grey (or (when alternate-description (str "Bank Description: " alternate-description))
|
||||
"Unknown Merchant")])]
|
||||
[grid/cell {} (date->str date) ]
|
||||
|
||||
Reference in New Issue
Block a user