added basics of ccp processor visibility.

This commit is contained in:
2021-06-04 23:01:59 -07:00
parent 922c449bb0
commit 002dcfc5ac
7 changed files with 40 additions and 10 deletions

View File

@@ -27,7 +27,7 @@
:date-range (:date-range params)
:client-id (:id @(re-frame/subscribe [::subs/client]))}
[[:sales-orders [:id :total :tax :tip :discount :service-charge :returns :date
[:charges [:type-name :total]]
[:charges [:type-name :total :processor]]
[:line-items [:item-name :total :category]]
[:client [:name :id]]]]
:total

View File

@@ -17,7 +17,8 @@
[grid/cell {:class "has-text-right"} (nf total )]
[grid/cell {:class "has-text-right"} (nf tax )]
[grid/cell {:class "has-text-right"} (nf tip )]
[grid/cell {} (str/join ", " (map :type-name charges))]
[grid/cell {} (str/join ", " (map (fn [c]
(str (:type-name c) " (" (name (:processor c)) ")")) charges))]
[grid/cell {} (str/join ", " (map :item-name line-items))]
[grid/button-cell {}
[:div.buttons