only include adjustments

This commit is contained in:
2021-06-12 07:51:49 -07:00
parent ef049de347
commit 15283f2679
2 changed files with 6 additions and 1 deletions

View File

@@ -2,3 +2,6 @@
5/25/2021 3 hours
6/1/2021 0.5 hours
6/5/2021 2 hours
6/6/2021 2 hours
6/11/2021 2 hours

View File

@@ -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))