Makes balance sheet work like pnl, updates pnl as necessary
This commit is contained in:
@@ -212,7 +212,7 @@
|
||||
(let [data (get-profit-and-loss context args value)
|
||||
result (print-pnl (:id context) args data)]
|
||||
|
||||
(->graphql {:report_url result})))
|
||||
(->graphql result)))
|
||||
|
||||
|
||||
(defn assoc-error [f]
|
||||
@@ -513,7 +513,8 @@
|
||||
:name {:type 'String}}}
|
||||
|
||||
:profit_and_loss_pdf
|
||||
{:fields {:report_url {:type 'String}}}
|
||||
{:fields {:url {:type 'String}
|
||||
:name {:type 'String}}}
|
||||
|
||||
:balance_sheet
|
||||
{:fields {:balance_sheet_accounts {:type '(list :balance_sheet_account)}
|
||||
|
||||
@@ -216,4 +216,5 @@
|
||||
:report/url url
|
||||
:report/creator (:user user)
|
||||
:report/created (java.util.Date.)}])
|
||||
url))
|
||||
{:report/name name
|
||||
:report/url url }))
|
||||
|
||||
Reference in New Issue
Block a user