Merge branch 'ssr-payments' into ssr-invoices
This commit is contained in:
0
src/clj/auto_ap/parse.fiddle
Normal file
0
src/clj/auto_ap/parse.fiddle
Normal file
@@ -572,6 +572,14 @@
|
|||||||
:total #"(?:INVOICE|TOTAL|CREDIT)\s+([\d\.,\-]+\.[\d\-]+( CR)?)"}
|
:total #"(?:INVOICE|TOTAL|CREDIT)\s+([\d\.,\-]+\.[\d\-]+( CR)?)"}
|
||||||
:parser {:date [:clj-time "MM/dd/yyyy"]
|
:parser {:date [:clj-time "MM/dd/yyyy"]
|
||||||
:total [:trim-commas-and-negate nil]}}
|
:total [:trim-commas-and-negate nil]}}
|
||||||
|
{:vendor "Primizie Foods"
|
||||||
|
:keywords [#"primiziefoods.com"]
|
||||||
|
:extract {:date #"Invoice Date\s+([0-9]+/[0-9]+/[0-9]+)"
|
||||||
|
:customer-identifier #"BILL TO.*?\n(.*?)\s{2,}"
|
||||||
|
:invoice-number #"Invoice #\s+(.*?)\n"
|
||||||
|
:total #"BALANCE DUE\s+\$([\d\.,\-]+\.[\d\-])"}
|
||||||
|
:parser {:date [:clj-time "MM/dd/yyyy"]
|
||||||
|
:total [:trim-commas-and-negate nil]}}
|
||||||
|
|
||||||
;; ROMA BAKERY
|
;; ROMA BAKERY
|
||||||
{:vendor "Roma Bakery Inc."
|
{:vendor "Roma Bakery Inc."
|
||||||
|
|||||||
@@ -211,7 +211,7 @@
|
|||||||
:method :post
|
:method :post
|
||||||
:headers (client-base-headers client)
|
:headers (client-base-headers client)
|
||||||
:body (json/write-str (cond-> {"location_ids" [(:square-location/square-id location)]
|
:body (json/write-str (cond-> {"location_ids" [(:square-location/square-id location)]
|
||||||
"limit" 10000
|
"limit" 1000
|
||||||
"cursor" cursor}
|
"cursor" cursor}
|
||||||
start (merge (pc start end))))
|
start (merge (pc start end))))
|
||||||
:as :json})
|
:as :json})
|
||||||
@@ -238,7 +238,7 @@
|
|||||||
(de/chain (manifold-api-call {:url "https://connect.squareup.com/v2/orders/search"
|
(de/chain (manifold-api-call {:url "https://connect.squareup.com/v2/orders/search"
|
||||||
:method :post
|
:method :post
|
||||||
:headers (client-base-headers client)
|
:headers (client-base-headers client)
|
||||||
:body (json/write-str (cond-> {"location_ids" [(:square-location/square-id location)] "limit" 10000}
|
:body (json/write-str (cond-> {"location_ids" [(:square-location/square-id location)] "limit" 1000}
|
||||||
start (merge (pc start end))))
|
start (merge (pc start end))))
|
||||||
:as :json})
|
:as :json})
|
||||||
:body
|
:body
|
||||||
|
|||||||
Reference in New Issue
Block a user