Hovering fix
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
(defn get-profit-and-loss [context args value]
|
||||
(let [args (assoc args :id (:id context))
|
||||
pnl (fn [from-date to-date]
|
||||
(println from-date to-date)
|
||||
(let [[starting-results] (l/get-graphql {:client-id (:client_id args)
|
||||
:to-date from-date
|
||||
:count Integer/MAX_VALUE})
|
||||
@@ -119,7 +120,7 @@
|
||||
[]
|
||||
ending-accounts)))]
|
||||
(->graphql
|
||||
{:balance-sheet-accounts (pnl (coerce/to-date (:from_date args))
|
||||
{:balance-sheet-accounts (pnl (coerce/to-date (time/minus (:from_date args) (time/days 1)))
|
||||
(coerce/to-date (:to_date args)))
|
||||
:comparable-balance-sheet-accounts (pnl (coerce/to-date (coerce/to-date (time/minus (coerce/to-date-time (:from_date args)) (time/years 1))))
|
||||
(coerce/to-date (coerce/to-date (time/minus (coerce/to-date-time (:to_date args)) (time/years 1)))))})))
|
||||
|
||||
Reference in New Issue
Block a user