You can now run the rule on a bunch of transactions.
This commit is contained in:
@@ -23,14 +23,14 @@
|
||||
[:client [:name]]
|
||||
[:bank-account [:name]]
|
||||
:description-original]]}]}
|
||||
:on-success [::succeeded-run]
|
||||
:on-success [::succeeded-run (:id which)]
|
||||
#_#_:on-error [:forms/save-error ::form]}}))
|
||||
|
||||
|
||||
(re-frame/reg-event-fx
|
||||
::succeeded-run
|
||||
(fn [{:keys [db]} [_ result]]
|
||||
{:dispatch [::results-modal/opening (:run-transaction-rule result) true]}))
|
||||
(fn [{:keys [db]} [_ transaction-rule-id result]]
|
||||
{:dispatch [::results-modal/opening (:run-transaction-rule result) transaction-rule-id true]}))
|
||||
|
||||
(defn table [{:keys [id rule-page on-params-change params status]}]
|
||||
(let [opc (fn [p]
|
||||
|
||||
Reference in New Issue
Block a user