fixes glimpse
This commit is contained in:
@@ -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)
|
||||
[])))
|
||||
|
||||
@@ -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)))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user