no need for transact-with-ledger.
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
apply-sort-3
|
||||
conn
|
||||
merge-query
|
||||
pull-many
|
||||
remove-nils]]
|
||||
pull-many]]
|
||||
[auto-ap.datomic.accounts :as d-accounts]
|
||||
[auto-ap.datomic.vendors :as d-vendors]
|
||||
[auto-ap.graphql.utils :refer [limited-clients]]
|
||||
@@ -15,7 +14,8 @@
|
||||
[clj-time.coerce :as coerce]
|
||||
[clj-time.core :as time]
|
||||
[clojure.set :refer [rename-keys]]
|
||||
[datomic.client.api :as dc]))
|
||||
[datomic.client.api :as dc]
|
||||
[iol-ion.tx :refer [random-tempid]]))
|
||||
|
||||
(def default-read '[*
|
||||
{:invoice/client [:client/name :db/id :client/locations :client/code]}
|
||||
@@ -323,7 +323,8 @@
|
||||
(next-dom schedule-payment-dom)
|
||||
coerce/to-date)
|
||||
:else nil)
|
||||
default-expense-account #:invoice-expense-account {:account (d-vendors/account-for-client-id vendor client-id)
|
||||
default-expense-account #:invoice-expense-account {:db/id (random-tempid)
|
||||
:account (d-vendors/account-for-client-id vendor client-id)
|
||||
:location (:invoice/location invoice)
|
||||
:amount (:invoice/total invoice)}]
|
||||
(cond-> invoice
|
||||
|
||||
Reference in New Issue
Block a user