other tweaks
This commit is contained in:
@@ -77,6 +77,7 @@
|
|||||||
"returns" 41100
|
"returns" 41100
|
||||||
"card payments" 75460
|
"card payments" 75460
|
||||||
"cash payments" 75452
|
"cash payments" 75452
|
||||||
|
"cash refunds" 75452
|
||||||
"food app payments" 72350
|
"food app payments" 72350
|
||||||
"unknown" 40000
|
"unknown" 40000
|
||||||
"discounts" 41000
|
"discounts" 41000
|
||||||
@@ -85,6 +86,7 @@
|
|||||||
"beverages" 42000
|
"beverages" 42000
|
||||||
"bowls" 40118
|
"bowls" 40118
|
||||||
"catering" 43000
|
"catering" 43000
|
||||||
|
"ezcater catering" 43010
|
||||||
"desserts" 40116
|
"desserts" 40116
|
||||||
"fries" 40117
|
"fries" 40117
|
||||||
"plates" 40113
|
"plates" 40113
|
||||||
@@ -93,7 +95,8 @@
|
|||||||
"uncategorized" 40000
|
"uncategorized" 40000
|
||||||
"tax" 25700
|
"tax" 25700
|
||||||
"tip" 25500
|
"tip" 25500
|
||||||
"card refunds" 75460})
|
"card refunds" 75460
|
||||||
|
"food app refunds" 72350})
|
||||||
|
|
||||||
(defn get-payment-items [c date]
|
(defn get-payment-items [c date]
|
||||||
(->>
|
(->>
|
||||||
|
|||||||
@@ -1283,11 +1283,10 @@
|
|||||||
[:td (fc/with-field :square-location/client-location
|
[:td (fc/with-field :square-location/client-location
|
||||||
(com/text-input {:name (fc/field-name)
|
(com/text-input {:name (fc/field-name)
|
||||||
:value (fc/field-value)}))]]))]]]])
|
:value (fc/field-value)}))]]))]]]])
|
||||||
(defn refresh-square-locations [request]
|
|
||||||
#_(alog/peek (keys (:query-params request)))
|
|
||||||
|
|
||||||
|
(defn refresh-square-locations [request]
|
||||||
(let [locations @(de/timeout!
|
(let [locations @(de/timeout!
|
||||||
(de/chain (square/client-locations {:client/square-auth-token (get-in request [:query-params "step-params[client/square-auth-token]"])})
|
(de/chain (square/client-locations {:client/square-auth-token (get-in request [:query-params (keyword "step-params[client/square-auth-token]")])})
|
||||||
(fn [client-locations]
|
(fn [client-locations]
|
||||||
(into []
|
(into []
|
||||||
(for [square-location client-locations]
|
(for [square-location client-locations]
|
||||||
|
|||||||
Reference in New Issue
Block a user