added basics of ccp processor visibility.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user