Don't import the wrong refunds
This commit is contained in:
@@ -312,6 +312,7 @@
|
||||
(log/warn "Retrying after failure " ex)
|
||||
(if (> try-count 4) false true))})))]
|
||||
(->> refunds
|
||||
(filter (fn [r] (= "COMPLETED" (:status r))))
|
||||
(map (fn [r]
|
||||
(let [[client location] (location_id->client-location l)]
|
||||
#:sales-refund {:external-id (str "square/refund/" (:id r))
|
||||
|
||||
Reference in New Issue
Block a user