The Trial Balance is a listing of all accounts in the chart of accounts, grouped by whether they belong to the Income Statement or Balance which compares their debit and credit balances. The debit and credit sides of this report must always be in agreement.
A TrialBalance only requires the year to be constructed.
$year
: The year for which account balances should be included in the report. Defaults to the current year.$trialBalance->entity
: The Entity object associated with the report.$trialBalance->reportingPeriod
: The ReportingPeriod object associated with the report.$trialBalance->balances
: The credit and debit balances for the report.$trialBalance->accounts
: An array of the accounts included in the report grouped by their categories.$trialBalance->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 for production.$trialBalance->getSections():
Retrieves the balances of the sections of the report, grouped by the categories therein.$trialBalance->attributes():
Presents the report’s attributes as an array. Useful for debugging.TrialBalance::TITLE
: The title of the report. Defaults to Trial Balance.