Should fix excel sheet.
This commit is contained in:
@@ -190,15 +190,14 @@
|
|||||||
|
|
||||||
(defn account-snapshot [db client-id ^java.util.Date end]
|
(defn account-snapshot [db client-id ^java.util.Date end]
|
||||||
(for [running-balance-set (account-sets db client-id)
|
(for [running-balance-set (account-sets db client-id)
|
||||||
:let [{id :e [client-id account-id location date _ _ current-balance] :v}
|
:let [z
|
||||||
(->> running-balance-set
|
(->> running-balance-set
|
||||||
(take-while (fn until-date [^Line l]
|
(take-while (fn until-date [^Line l]
|
||||||
(let [^java.util.Date d (.-date l)]
|
(let [^java.util.Date d (.-date l)]
|
||||||
(<= (.compareTo ^java.util.Date d end) 0))))
|
(<= (.compareTo ^java.util.Date d end) 0))))
|
||||||
last)]
|
last) ]
|
||||||
:when id]
|
:when (.-id z)]
|
||||||
[client-id account-id location date current-balance]))
|
[(.-client-id z) (.-account-id z) (.-location z) (.-date z) (.-running-balance z)]))
|
||||||
|
|
||||||
|
|
||||||
(defn detailed-account-snapshot [db client-id ^java.util.Date end]
|
(defn detailed-account-snapshot [db client-id ^java.util.Date end]
|
||||||
(for [running-balance-set (account-sets db client-id)
|
(for [running-balance-set (account-sets db client-id)
|
||||||
|
|||||||
Reference in New Issue
Block a user