bunch of small fixes. balance sheet has optional comparison and titles. trying to make payment unlinkable more easily.

This commit is contained in:
Bryce Covert
2020-12-17 07:42:19 -08:00
parent 1534175608
commit a9da35d7b9
4 changed files with 124 additions and 85 deletions

View File

@@ -235,6 +235,11 @@
[:input.input {:type "text"
:field [:description-original]
:disabled "disabled"}])
(when (and (:payment data)
is-admin?)
[:p.notification.is-info.is-light>div.level>div.level-left
[:div.level-item "This transaction is linked to a payment "]
[:div.level-item [:button.button.is-warning {:on-click (dispatch-event [::unlink])} "Unlink"]]])
(cond
(and (seq (:potential-transaction-rule-matches data))
@@ -289,11 +294,7 @@
:type "typeahead-entity"
:field [:forecast-match]}])
(when (and (:payment data)
is-admin?)
[:p.notification.is-info.is-light>div.level>div.level-left
[:div.level-item "This transaction is linked to a payment "]
[:div.level-item [:button.button.is-warning {:on-click (dispatch-event [::unlink])} "Unlink"]]])
(error-notification)