This commit is contained in:
2022-07-11 09:36:41 -07:00
parent 6f4b91b654
commit c27adb4470
2 changed files with 7 additions and 1 deletions

View File

@@ -285,5 +285,10 @@
{:db/ident :square-location/client-location
:db/doc "The client location that this location should match to. e.g. WH"
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one}]]}})
:db/cardinality :db.cardinality/one}]]}
:add-indices {:txes [[{:db/ident :sales-order/date
:db/index true}
{:db/ident :sales-order/client
:db/index true}]]
:requires [:add-orders]}})

View File

@@ -91,6 +91,7 @@
true
(merge-query {:query {:find ['?sort-default '?e]
:where ['[?e :sales-order/date ?sort-default]]}}))]
(log/info "Sales query" query)
(cond->> query
true (d/query)