The Balance Sheet, also known as the Statement of Financial position shows the financial health of the entity by comparing the combined balances of asset accounts to those of liability and equity accounts.
An BalanceSheet constructor takes the following parameters:
$endDate: The last date on which account balances should be included in the report. Defaults to the last day of the current reporting period.$entity: The Entity the report is for. Defaults to the entity of the logged in user. (See Entities).$balanceSheet->entity: The Entity object associated with the report.$balanceSheet->reportingPeriod: The ReportingPeriod object associated with the report.$balanceSheet->period: The period (endDate) covered by the report.$balanceSheet->balances: The balances for the sections report.$balanceSheet->accounts: An array of the accounts included in the report grouped by their categories.BalanceSheet::getAccountTypes: Retrieve the account types associated with the balance sheet.$balanceSheet->toString(): Prints out a summarized version of the report as a string. !! IMPORTANT !! this method is only intended for debugging and should never be used in production.$balanceSheet->getSections(): Retrieves the balances of the sections of the report, grouped by the categories therein.$balanceSheet->attributes(): Presents the report’s attributes as an array. Useful for debugging.BalanceSheet::TITLE: The title of the report. Defaults to Balance Sheet.BalanceSheet::ASSETS: The Assets section of the report. Includes both Current and Non-current assets.BalanceSheet::LIABILITIES: The Liabilities section of the report. Includes both Current and Non-current liabilities.BalanceSheet::EQUITY: The Equity section of the report.BalanceSheet::RECONCILIATION: The Reconciliation section of the report.BalanceSheet::TOTAL_ASSETS: The assets section total.BalanceSheet::TOTAL_LIABILITIES: The liabilities section total.BalanceSheet::NET_ASSETS: The net assets result.BalanceSheet::TOTAL_RECONCILIATION: The reconciliation section total.BalanceSheet::NET_PROFIT: The net profit result.BalanceSheet::TOTAL_EQUITY: The equity section total, including the net profit for the period. An entity whose liabilities exceed its assets has negative equity.