@if (!loading && debitSide && creditSide) { {{ tallied ? 'Balanced' : 'Out of balance by ' + fmt(difference) }} }
@if (error) {
{{ error }}
} @if (loading) {
Loading balance sheet…
} @if (!loading && debitSide && creditSide) {

CONSOLIDATED BALANCE SHEET (SUB GROUP WISE)

AS ON : {{ displayDate(asOnDateLoaded) }}

FOR BRANCHES : {{ officeLabel }}

LIABILITIES ( CREDIT )
ACCOUNT NAME BALANCE TOTAL
@for (group of creditSide.groups; track group.classification) { @for (root of group.nodes; track root.id) { } } @if (creditSide.groups.length === 0) {
No liability, equity or income balances as on this date.
}
{{ fmt(creditSide.total) }}
ASSETS ( DEBIT )
ACCOUNT NAME BALANCE TOTAL
@for (group of debitSide.groups; track group.classification) { @for (root of group.nodes; track root.id) { } } @if (debitSide.groups.length === 0) {
No asset or expense balances as on this date.
}
{{ fmt(debitSide.total) }}
}
@if (root.usage === 'DETAIL') {
{{ root.name }} {{ fmt(root.balance) }} {{ fmt(root.balance) }}
} @else {
{{ root.name }}
@for (child of root.children; track child.id) { } @if (root.children.length === 0) {
No accounts under this group
}
{{ fmt(root.balance) }}
}
@if (node.usage === 'DETAIL') {
{{ node.name }} {{ fmt(node.balance) }}
} @else {
{{ node.name }}
@for (child of node.children; track child.id) { }
{{ fmt(node.balance) }}
}