adds extra logging, allows printing of checks even if solr has issues.

This commit is contained in:
2024-09-15 21:42:33 -07:00
parent 3b410cf200
commit 065e56d621
3 changed files with 14 additions and 6 deletions

View File

@@ -1086,8 +1086,12 @@
:payment/date (coerce/to-date (:handwritten-date snapshot)))]
(invoice-payments invoices invoice-payment-lookup))
(:identity request))]
(doseq [[_ i] (:tempids result)]
(solr/touch-with-ledger i)))))
(try
(doseq [[_ i] (:tempids result)]
(solr/touch-with-ledger i))
(catch Exception e
(alog/error ::cant-save-solr
:error e))))))
;; TODO support crediting from balance
(defrecord PayWizard [form-params current-step invoice-by-id]