dates should be inclusive.

This commit is contained in:
2024-12-16 22:30:18 -08:00
parent da2702f9e8
commit a0bfeb51a7
4 changed files with 5 additions and 4 deletions

View File

@@ -102,7 +102,7 @@
:account-type (:account_type account)
:numeric-code (:numeric_code account)
:name (:name account)
:period {:start ( coerce/to-date (:start p)) :end ( coerce/to-date (:end p))}}))
:period {:start ( coerce/to-date (:start p)) :end (coerce/to-date (time/plus (:end p) (time/days 1)))}}))
args (assoc (:form-params request)
:periods (map (fn [d] {:start ( coerce/to-date (:start d)) :end ( coerce/to-date (:end d))}) periods))
clients (pull-many (dc/db conn) [:client/code :client/name :db/id] client-ids)