diff --git a/src/clj/auto_ap/graphql/clients.clj b/src/clj/auto_ap/graphql/clients.clj index 221f3c73..e311da6a 100644 --- a/src/clj/auto_ap/graphql/clients.clj +++ b/src/clj/auto_ap/graphql/clients.clj @@ -352,16 +352,14 @@ :in $ :where [?cds :cash-drawer-shift/date ?date] -[(ground (clj-time.coerce/to-date (clj-time.core/minus (auto-ap.time/local-now) (clj-time.core/days 90)))) ?min-d] +[(ground (iol-ion.query/recent-date)) ?min-d] [(>= ?date ?min-d)] [?cds :cash-drawer-shift/client [:client/code \"%s\"]] [?cds :cash-drawer-shift/paid-in ?paid-in] -[?cds :cash-drawer-shift/paid-in ?paid-out] -[?cds :cash-drawer-shift/paid-in ?expected-cash] -[?cds :cash-drawer-shift/paid-in ?opened-cash] -[(clj-time.coerce/to-date-time ?date) ?d2] -[(auto-ap.time/localize ?d2) ?d3] -[(auto-ap.time/unparse-local ?d3 auto-ap.time/normal-date) ?d4]]") +[?cds :cash-drawer-shift/paid-out ?paid-out] +[?cds :cash-drawer-shift/expected-cash ?expected-cash] +[?cds :cash-drawer-shift/opened-cash ?opened-cash] +[(iol-ion.query/excel-date ?date) ?d4]]")