doesnt allow advanced overpay.
This commit is contained in:
@@ -531,6 +531,14 @@
|
||||
(when shown?
|
||||
[modal {:title "Print Checks"
|
||||
:foot [:button.button.is-primary {:on-click (dispatch-event [::advanced-print-checks-submitted])
|
||||
:disabled (cond printing?
|
||||
"disabled"
|
||||
|
||||
(seq (filter #(> (js/parseFloat (:amount %)) (js/parseFloat (:outstanding-balance %))) invoices))
|
||||
"disabled"
|
||||
|
||||
:else
|
||||
"")
|
||||
:class (if printing? "is-loading" "")}
|
||||
[:span "Print"]]
|
||||
:hide-event [::cancel-advanced-print]}
|
||||
|
||||
Reference in New Issue
Block a user