Fixes a few issues discovered
This commit is contained in:
@@ -419,7 +419,7 @@
|
||||
(dissoc % :payment/pdf-data)
|
||||
%) checks ) id)]
|
||||
|
||||
(doseq [i (:tempids result)]
|
||||
(doseq [[_ i] (:tempids result)]
|
||||
(solr/touch-with-ledger i)))
|
||||
{:invoices (d-invoices/get-multi (map :invoice-id invoice-payments))
|
||||
:pdf-url (if (= type :payment-type/check)
|
||||
@@ -485,7 +485,7 @@
|
||||
:payment/date (c/to-date (parse (:date args) iso-date)))]
|
||||
(invoice-payments invoices invoice-payment-lookup))
|
||||
(:id context))]
|
||||
(doseq [i (:tempids result)]
|
||||
(doseq [[_ i] (:tempids result)]
|
||||
(solr/touch-with-ledger i)))
|
||||
(->graphql
|
||||
{:s3-url nil
|
||||
@@ -655,7 +655,7 @@
|
||||
(let [result (audit-transact (-> []
|
||||
(conj payment)
|
||||
(into (invoice-payments invoices invoice-amounts))) (:id context))]
|
||||
(doseq [n (:tempids result)]
|
||||
(doseq [[_ n] (:tempids result)]
|
||||
(solr/touch-with-ledger n)))
|
||||
(->graphql {:invoices (d-invoices/get-multi (map :db/id invoices))})))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user