ezcater xls fixes
This commit is contained in:
@@ -428,14 +428,12 @@
|
||||
:selector [:db/id :journal-entry-line/debit :journal-entry-line/location :journal-entry-line/credit {:journal-entry-line/account [:db/id {:account/type [:db/ident]}]} :journal-entry-line/client+account+location+date]
|
||||
:start [:journal-entry-line/client+account+location+date
|
||||
[client]]})
|
||||
(take 100)
|
||||
(take-while (fn [jel]
|
||||
(let [[c _ _ _] (:journal-entry-line/client+account+location+date jel)]
|
||||
(= c client))))
|
||||
(filter (fn [jel]
|
||||
(let [[_ _ _ d] (:journal-entry-line/client+account+location+date jel)]
|
||||
(<= (compare (or d #inst "2000-01-01") as-of) 0))))
|
||||
(into [])
|
||||
(reduce
|
||||
(fn [acc jel]
|
||||
(update acc [(:db/id (:journal-entry-line/account jel)) (:journal-entry-line/location jel)]
|
||||
|
||||
@@ -79,7 +79,8 @@
|
||||
:external-id (str "ezcater/charge/" client-id "-" location "-" order-number "-" 0)
|
||||
:processor :ccp-processor/ezcater
|
||||
:total (fmt-amount (+ food-total
|
||||
tax))
|
||||
tax
|
||||
tip))
|
||||
:tip (fmt-amount tip)}]
|
||||
:total (fmt-amount (+ food-total
|
||||
tax
|
||||
|
||||
Reference in New Issue
Block a user