class TrialBalance extends FinancialStatement

Constants

TITLE

Trial Balance Title

Properties

string $reportingPeriod

Financial Statement Reporting Period.

from  FinancialStatement
array $balances

Financial Statement balances.

from  FinancialStatement
array $accounts

Financial Statement accounts.

from  FinancialStatement
array $totals

Financial Statement totals.

from  FinancialStatement
array $results

Financial Statement results.

from  FinancialStatement
string $statement

Financial Statement printout.

from  FinancialStatement
string $indent

Financial Statement printout indent.

from  FinancialStatement
string $separator

Financial Statement printout subtotal rule.

from  FinancialStatement
string $grand_total

Financial Statement printout total rule.

from  FinancialStatement
int $result_indents

Financial Statement printout result indent width.

from  FinancialStatement
protected Entity $entity

Financial Statement Entity.

from  FinancialStatement
Carbon $endDate

Trial Balance end date.

Methods

__construct(string|null $year = null, Entity|null $entity = null)

Construct Trial Balance

array
attributes()

Print Financial Statement attributes.

array
getSections(string|Carbon $startDate = null, string|Carbon $endDate = null, bool $fullbalance = true)

Get Trial Balance Sections.

string
printTitle(string $statement, string $title)

Print Statement Title

string
printSection(string $section, string $statement, string $indent, int $amountFactor = 1)

Print Statement Section

string
printTotal(string $section, string $statement, string $indent, int $amountFactor = 1, int $indentFactor = 1)

Print Statement Total

string
printResult(string $result, string $statement, string $indent, int $indentFactor)

Print Statement Result

Details

at line 41
__construct(string|null $year = null, Entity|null $entity = null)

Construct Trial Balance

Parameters

string|null $year
Entity|null $entity

in FinancialStatement at line 125
array attributes()

Print Financial Statement attributes.

Return Value

array

at line 64
array getSections(string|Carbon $startDate = null, string|Carbon $endDate = null, bool $fullbalance = true)

Get Trial Balance Sections.

Parameters

string|Carbon $startDate
string|Carbon $endDate
bool $fullbalance

Return Value

array

in FinancialStatement at line 177
protected string printTitle(string $statement, string $title)

Print Statement Title

Parameters

string $statement
string $title

Return Value

string

in FinancialStatement at line 209
protected string printSection(string $section, string $statement, string $indent, int $amountFactor = 1)

Print Statement Section

Parameters

string $section
string $statement
string $indent
int $amountFactor

Return Value

string

in FinancialStatement at line 236
protected string printTotal(string $section, string $statement, string $indent, int $amountFactor = 1, int $indentFactor = 1)

Print Statement Total

Parameters

string $section
string $statement
string $indent
int $amountFactor
int $indentFactor

Return Value

string

in FinancialStatement at line 258
protected string printResult(string $result, string $statement, string $indent, int $indentFactor)

Print Statement Result

Parameters

string $result
string $statement
string $indent
int $indentFactor

Return Value

string