only include adjustments
This commit is contained in:
@@ -2,3 +2,6 @@
|
|||||||
|
|
||||||
5/25/2021 3 hours
|
5/25/2021 3 hours
|
||||||
6/1/2021 0.5 hours
|
6/1/2021 0.5 hours
|
||||||
|
6/5/2021 2 hours
|
||||||
|
6/6/2021 2 hours
|
||||||
|
6/11/2021 2 hours
|
||||||
|
|||||||
@@ -257,7 +257,9 @@
|
|||||||
#:sales-refund {:external-id (str "square/refund/" (:id r))
|
#:sales-refund {:external-id (str "square/refund/" (:id r))
|
||||||
:total (amount->money (:amount_money r))
|
:total (amount->money (:amount_money r))
|
||||||
:fee (transduce
|
:fee (transduce
|
||||||
(comp (map :amount_money) (map amount->money))
|
(comp (filter #(= "ADJUSTMENT" (:type %)))
|
||||||
|
(map :amount_money)
|
||||||
|
(map amount->money))
|
||||||
+
|
+
|
||||||
0.0
|
0.0
|
||||||
(:processing_fee r))
|
(:processing_fee r))
|
||||||
|
|||||||
Reference in New Issue
Block a user