This commit is contained in:
Bryce Covert
2022-01-06 06:24:58 -08:00
parent fa2bffe167
commit 1439f291b4
2 changed files with 39 additions and 1 deletions

View File

@@ -89,7 +89,7 @@
:status :invoice-status/unpaid
:client-identifier customer-identifier
:expense-accounts [#:invoice-expense-account {:account (:db/id (:vendor/default-account sysco-vendor))
:amount total
:amount (+ total tax)
:location (parse/best-location-match matching-client location-hint location-hint )}]}
(:vendor/terms sysco-vendor) (assoc :invoice/due (coerce/to-date
(time/plus date (time/days (d-vendors/terms-for-client-id sysco-vendor (:db/id matching-client))))))