Makes balance sheet work like pnl, updates pnl as necessary

This commit is contained in:
2022-03-31 19:27:36 -07:00
parent b9dd34d7c7
commit aaa82714d9
6 changed files with 367 additions and 427 deletions

View File

@@ -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)}

View File

@@ -216,4 +216,5 @@
:report/url url
:report/creator (:user user)
:report/created (java.util.Date.)}])
url))
{:report/name name
:report/url url }))