Magidoc

getFinanceWholeWorkspaceStatementReadable
Query

Whether this reader may ask for the unnamed, whole-workspace statement — the trial balance, balance sheet, GL detail and profit and loss measured over every set of books at once. True where no company restricts anybody, or where the reader holds every company the workspace has; false where their finance access covers only some of them, which is exactly when those four queries require a glCompanyId. A statement surface asks this before it offers a scope, because nothing else it holds can answer: the refusal only arrives after a statement has already failed, and getFinanceGlCompanies and getFinanceGlCompaniesCount are both narrowed to the reader's own companies, so neither reports the total the rule compares against. One boolean is deliberately the whole answer — how many companies a reader cannot open, or which, is what the assignment exists to withhold. Access: the same gate as the statements it describes — reportsRead in a workspace where finance is enabled. Errors: the workspace is not found, finance is disabled for it, the caller is not a member, or they lack reportsRead.

Arguments

#

workspaceId

ID !
Non-null

Response

#

Returns Boolean !.

Example

#