voiding moves an invoices state back

This commit is contained in:
Bryce Covert
2018-07-31 08:14:31 -07:00
parent 577b8a1092
commit 7e7045652f
3 changed files with 26 additions and 3 deletions

View File

@@ -161,7 +161,8 @@
[:td (gstring/format "$%.2f" amount )]
[:td status]
[:td
(when (= "pending" status)
(when (or (= "pending" status)
(#{"cash" "debit"} type))
[:button.button.is-warning.is-outlined {:on-click (dispatch-event [::void-check i])} [:span [:span.icon [:i.fa.fa-minus-circle]]]])
(if s3-url
[:a.tag {:href s3-url :target "_new"} [:i.fa.fa-money-check] [:span.icon [:i.fa.fa-money]] (str " " check-number " (" (gstring/format "$%.2f" amount ) ")")]