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