lots of new fixes.
This commit is contained in:
@@ -203,7 +203,7 @@
|
||||
[sort-by-list {:sort sort
|
||||
:on-change opc}]]
|
||||
[:div.level-item
|
||||
"Outstanding" (nf outstanding)]]]
|
||||
"Outstanding " (nf outstanding)]]]
|
||||
(doall
|
||||
(for [invoices invoice-groups]
|
||||
^{:key (:id (first invoices))}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
:date
|
||||
[:yodlee_merchant [:name :yodlee-id :id]]
|
||||
:post_date
|
||||
[:forecast-match [:id :identifier]]
|
||||
:status
|
||||
:description_original
|
||||
[:payment [:check_number :s3_url]]
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
(re-frame/reg-sub
|
||||
::submit-query
|
||||
:<- [::forms/form ::form]
|
||||
(fn [{{:keys [id vendor accounts approval-status]} :data}]
|
||||
(fn [{{:keys [id vendor accounts approval-status forecast-match]} :data}]
|
||||
{:venia/operation {:operation/type :mutation
|
||||
:operation/name "EditTransaction"}
|
||||
:venia/queries [{:query/data
|
||||
@@ -23,6 +23,7 @@
|
||||
{:transaction {:id id
|
||||
:vendor-id (:id vendor)
|
||||
:approval-status approval-status
|
||||
:forecast-match (:id forecast-match)
|
||||
:accounts (map
|
||||
(fn [{:keys [id account amount location]}]
|
||||
{:id (when-not (str/starts-with? id "new-")
|
||||
@@ -51,6 +52,7 @@
|
||||
(-> which
|
||||
(select-keys [:vendor :amount :payment :client :description-original
|
||||
:yodlee-merchant :id :potential-payment-matches
|
||||
:forecast-match
|
||||
:location :accounts :approval-status
|
||||
:matched-rule])
|
||||
(assoc :original-status (:approval-status which))
|
||||
@@ -262,6 +264,12 @@
|
||||
[:excluded "Excluded from Ledger"]]
|
||||
:disabled should-disable-for-client?}]]
|
||||
|
||||
[field "Forecasted-transaction"
|
||||
[typeahead-entity {:matches (doto @(re-frame/subscribe [::subs/forecasted-transactions-for-client (:id (:client data))]) println)
|
||||
:match->text :identifier
|
||||
:type "typeahead-entity"
|
||||
:field [:forecast-match]}]]
|
||||
|
||||
[:hr]
|
||||
|
||||
[error-notification]
|
||||
|
||||
Reference in New Issue
Block a user