(cloud) Made invoice proposition a usable ion
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
[amazonica.aws.s3 :as s3]
|
||||
[auto-ap.datomic.clients :as d-clients]
|
||||
[auto-ap.jobs.core :refer [execute]]
|
||||
[iol-ion.tx :refer [propose-invoice]]
|
||||
[auto-ap.logging :as log]
|
||||
[auto-ap.parse :as parse]
|
||||
[auto-ap.time :as atime]
|
||||
@@ -83,7 +84,7 @@
|
||||
:destination-key invoice-key})
|
||||
(->> (extract-invoice-details (read-csv k) clients)
|
||||
(map (fn [i]
|
||||
[:propose-invoice (assoc i :invoice/source-url invoice-url)]))
|
||||
[`(propose-invoice ~(assoc i :invoice/source-url invoice-url))]))
|
||||
))
|
||||
(catch Exception e
|
||||
(log/error ::cant-load-file
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
[auto-ap.jobs.core :refer [execute]]
|
||||
[auto-ap.datomic.clients :as d-clients]
|
||||
[auto-ap.datomic.invoices :refer [code-invoice propose-invoice]]
|
||||
[iol-ion.tx :refer [propose-invoice]]
|
||||
[auto-ap.ledger :refer [transact-with-ledger]]
|
||||
[auto-ap.parse :as parse]
|
||||
[auto-ap.time :as t]
|
||||
|
||||
Reference in New Issue
Block a user