other changes to make app more predictable.
This commit is contained in:
@@ -134,10 +134,10 @@
|
||||
[]
|
||||
ending-accounts)))]
|
||||
(->graphql
|
||||
{:balance-sheet-accounts (pnl (coerce/to-date-time (:start (:date_range args)))
|
||||
(coerce/to-date-time (:end (:date_range args))))
|
||||
:comparable-balance-sheet-accounts (pnl (time/minus (coerce/to-date-time (:start (:date_range args))) (time/years 1))
|
||||
(time/minus (coerce/to-date-time (:end (:date_range args))) (time/years 1)))})))
|
||||
{:balance-sheet-accounts (pnl (:start (:date_range args))
|
||||
(:end (:date_range args)))
|
||||
:comparable-balance-sheet-accounts (pnl (time/minus (:start (:date_range args)) (time/years 1))
|
||||
(time/minus (:end (:date_range args)) (time/years 1)))})))
|
||||
|
||||
#_(get-profit-and-loss nil {:client_id [:client/code "CBC"]
|
||||
:from_date "2018-01-01"
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
:journal-entry/vendor (:db/id (:invoice/vendor entity))
|
||||
:journal-entry/amount (:invoice/total entity)
|
||||
|
||||
:journal-entry/line-items (into [{:journal-entry-line/account (:db/id (a/get-account-by-numeric-code-and-sets 2110 ["default"]))
|
||||
:journal-entry/line-items (into [{:journal-entry-line/account (:db/id (a/get-account-by-numeric-code-and-sets 21000 ["default"]))
|
||||
:journal-entry-line/location "A"
|
||||
:journal-entry-line/credit (:invoice/total entity)}]
|
||||
(map (fn [ea]
|
||||
|
||||
Reference in New Issue
Block a user