working on ezcater
ezcater other. dajusments. migration for square2
This commit is contained in:
@@ -292,5 +292,43 @@
|
||||
:db/index true}]]
|
||||
:requires [:add-orders]}
|
||||
:add-ezcater-vendor {:txes [[{:db/ident :vendor/ccp-ezcater
|
||||
:vendor/name "EZCater CCP"}]]}})
|
||||
:vendor/name "EZCater CCP"}]]}
|
||||
:add-charge-client {:txes [[{:db/ident :charge/client
|
||||
:db/doc "The client for the sale"
|
||||
:db/valueType :db.type/ref
|
||||
:db/cardinality :db.cardinality/one}
|
||||
|
||||
{:db/ident :charge/location
|
||||
:db/doc "The location of the sale"
|
||||
:db/valueType :db.type/string
|
||||
:db/cardinality :db.cardinality/one}]]}
|
||||
:add-charge-date {:txes [[{:db/ident :charge/date
|
||||
:db/doc "The date for the payment"
|
||||
:db/valueType :db.type/instant
|
||||
:db/cardinality :db.cardinality/one}]]}
|
||||
:add-ezcater-processor {:txes [[{:db/ident :ccp-processor/ezcater
|
||||
:db/doc "ezcater processor"}]]}
|
||||
:add-koala-processor {:txes [[{:db/ident :ccp-processor/koala
|
||||
:db/doc "koala processor"}]]}
|
||||
:add-square-processor {:txes [[{:db/ident :ccp-processor/square
|
||||
:db/doc "square processor"}]]}
|
||||
:add-reference-link3 {:txes [[{:db/ident :sales-order/reference-link
|
||||
:db/cardinality :db.cardinality/one
|
||||
:db/valueType :db.type/string
|
||||
:db/doc "A link someone can go to to look at the order"}
|
||||
{:db/ident :charge/reference-link
|
||||
:db/cardinality :db.cardinality/one
|
||||
:db/valueType :db.type/string
|
||||
:db/doc "A link someone can go to to look at the charge"}]]}
|
||||
:add-source-field2 {:txes [[{:db/ident :sales-order/source
|
||||
:db/cardinality :db.cardinality/one
|
||||
:db/valueType :db.type/string
|
||||
:db/doc "Where the POS says the order is from"}
|
||||
{:db/ident :charge/note
|
||||
:db/cardinality :db.cardinality/one
|
||||
:db/valueType :db.type/string
|
||||
:db/doc "A custom note"}]]}
|
||||
:add-feature-flags {:txes [[{:db/ident :client/feature-flags
|
||||
:db/valueType :db.type/string
|
||||
:db/cardinality :db.cardinality/many}]]}})
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
(:sort args) (add-sorter-fields {"client" ['[?e :sales-order/client ?c]
|
||||
'[?c :client/name ?sort-client]]
|
||||
"location" ['[?e :sales-order/location ?sort-location]]
|
||||
"source" ['[?e :sales-order/source ?sort-source]]
|
||||
"date" ['[?e :sales-order/date ?sort-date]]
|
||||
"total" ['[?e :sales-order/total ?sort-total]]
|
||||
"tax" ['[?e :sales-order/tax ?sort-tax]]
|
||||
@@ -68,6 +69,11 @@
|
||||
'[?chg :charge/processor ?processor]]}
|
||||
:args [(keyword "ccp-processor"
|
||||
(name (:processor args)))]})
|
||||
(:type-name args)
|
||||
(merge-query {:query {:in ['?type-name]
|
||||
:where ['[?e :sales-order/charges ?chg]
|
||||
'[?chg :charge/type-name ?type-name]]}
|
||||
:args [(:type-name args)]})
|
||||
|
||||
(:total-gte args)
|
||||
(merge-query {:query {:in ['?total-gte]
|
||||
|
||||
Reference in New Issue
Block a user