Merge branch 'master' into staging

This commit is contained in:
Bryce Covert
2022-01-04 06:48:22 -08:00
3 changed files with 138 additions and 2 deletions

View File

@@ -70,6 +70,7 @@
(and customer-identifier
(parse/best-match clients customer-identifier)))
total (Double/parseDouble (summary-row "TotalExtendedPrice"))
tax (Double/parseDouble (summary-row "TotalTaxAmount"))
date (t/parse
(header-row "InvoiceDate")
"yyMMdd")
@@ -79,7 +80,7 @@
(log/infof "Importing %s for %s" (header-row "InvoiceNumber") (header-row "CustomerName"))
[:propose-invoice (cond-> #:invoice {:invoice-number (header-row "InvoiceNumber")
:total total
:total (+ total tax)
:outstanding-balance total
:date (coerce/to-date date)
:vendor (:db/id sysco-vendor )

View File

@@ -302,7 +302,7 @@
(defn get-provider-accounts-with-details []
(let [provider-accounts (get-provider-accounts)]
(let [concurrent 20
(let [concurrent 10
output-chan (async/chan)]
(async/pipeline-blocking concurrent
output-chan