Merge branch 'master' of codecommit://integreat

This commit is contained in:
Bryce
2023-05-23 10:20:38 -07:00
3 changed files with 5 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
[auto-ap.time-utils :refer [next-dom]]
[clj-time.coerce :as coerce]
[clj-time.core :as time]
[com.brunobonacci.mulog :as mu]
[clojure.set :refer [rename-keys]]
[datomic.api :as dc]
[iol-ion.tx :refer [random-tempid]]))
@@ -293,6 +294,8 @@
[]))
(defn code-invoice [invoice]
(mu/log ::trying-to-code-invoice
:invoice invoice)
(let [db (dc/db auto-ap.datomic/conn)
client-id (:invoice/client invoice)
vendor-id (:invoice/vendor invoice)

View File

@@ -32,6 +32,7 @@
#:transaction
{:post-date (coerce/to-date (atime/parse post-date "YYYY-MM-dd"))
:id (di/sha-256 (str id))
:db/id (random-tempid)
:raw-id (str id)
:account-id account-id
:date (if use-date-instead-of-post-date?

View File

@@ -11,6 +11,7 @@
[clj-time.coerce :as coerce]
[clojure.data.csv :as csv]
[clojure.java.io :as io]
[com.brunobonacci.mulog :as mu]
[clojure.string :as str]
[clojure.tools.logging :as log]
[com.unbounce.dogstatsd.core :as statsd]