customized transactions.
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
%))
|
||||
(update :default-account
|
||||
(fn [da]
|
||||
@(re-frame/subscribe [::subs/account (:id da)]))))))
|
||||
@(re-frame/subscribe [::subs/account nil (:id da)]))))))
|
||||
:dispatch [::events/modal-status ::dialog {:visible? true}]}))
|
||||
|
||||
(re-frame/reg-event-db
|
||||
@@ -170,7 +170,7 @@
|
||||
[:a.button {:on-click (dispatch-event [::removed-override override-key i])} [:span.icon [:span.icon-remove]]]]])])]))
|
||||
|
||||
(defn form-content [{:keys [data change-event]}]
|
||||
(let [chooseable-expense-accounts @(re-frame/subscribe [::subs/chooseable-expense-accounts])
|
||||
(let [accounts @(re-frame/subscribe [::subs/accounts])
|
||||
clients @(re-frame/subscribe [::subs/clients])]
|
||||
[:div
|
||||
[horizontal-field
|
||||
@@ -219,7 +219,7 @@
|
||||
[default-with-overrides {:data data :change-event change-event
|
||||
:default-key :default-account
|
||||
:override-key :account-overrides}
|
||||
[typeahead-entity {:matches chooseable-expense-accounts
|
||||
[typeahead-entity {:matches accounts
|
||||
:match->text (fn [x ] (str (:numeric-code x) " - " (:name x)))
|
||||
:type "typeahead-entity"
|
||||
:event change-event
|
||||
|
||||
Reference in New Issue
Block a user