fixes glimpse

This commit is contained in:
2023-09-14 12:59:32 -07:00
parent 86e9addf01
commit 2454695124
2 changed files with 4 additions and 4 deletions

View File

@@ -53,7 +53,8 @@
:content-type :json
:as :json})
:body
:matches))
:matches
(doto (#(alog/info ::similarities-found :transaction transaction-id :count (count %) :sample (take 3 %))))))
(do (alog/info ::no-matches-for :transaction transaction-id)
[])))

View File

@@ -336,8 +336,7 @@ invoice_dropzone = new Dropzone(\"#invoice\", {
:client/locations
first))
due (and (:vendor/terms vendor)
(coerce/to-date
(time/plus date (time/days (d-vendors/terms-for-client-id vendor client-id)))))
(time/plus (coerce/to-date-time date) (time/days (d-vendors/terms-for-client-id vendor client-id))))
scheduled-payment (and (d-vendors/automatically-paid-for-client-id? vendor client-id)
due)]
(when (and client-id date invoice-number vendor-id total)
@@ -349,11 +348,11 @@ invoice_dropzone = new Dropzone(\"#invoice\", {
:invoice/total total
:invoice/date date
:invoice/scheduled-payment (some-> scheduled-payment coerce/to-date)
:invoice/location location
:invoice/import-status :import-status/imported
:invoice/outstanding-balance total
:invoice/status :invoice-status/unpaid}
scheduled-payment (assoc :invoice/scheduled-payment (some-> scheduled-payment coerce/to-date))
(instance? org.joda.time.DateTime due) (assoc :invoice/due (some-> due coerce/to-date))
(instance? org.joda.time.DateTime scheduled-payment) (assoc :invoice/scheduled-payment (some-> scheduled-payment coerce/to-date)))))))