%for rec in objects:

<% cols = 3 if rec.multi_currency else 2 %>
${_("Summary account:")} ${rec.account_id.code} - ${rec.account_id.name}
%if rec.multi_currency:
%endif
${_("Beginning Balance")} | ${formatLang(rec.starting_balance_in_currency, monetary=True, currency_obj=rec.account_id.currency_id)} | ${formatLang(rec.starting_balance, monetary=True, currency_obj=rec.company_id.currency_id)}
${_("Cleared Transactions")} |  |
%if rec.multi_currency:
%endif
${_("Deposits and Credits")}${" - %s " % int(rec.sum_of_debits_lines)}${_("items")} | ${formatLang(rec.sum_of_debits_in_currency, monetary=True, currency_obj=rec.account_id.currency_id)} | ${formatLang(rec.sum_of_debits, monetary=True, currency_obj=rec.company_id.currency_id)}
%if rec.multi_currency:
%endif
${_("Cheques and Debits")}${" - %s " % int(rec.sum_of_credits_lines)}${_("items")} | ${formatLang(-rec.sum_of_credits_in_currency, monetary=True, currency_obj=rec.account_id.currency_id)} | ${formatLang(-rec.sum_of_credits, monetary=True, currency_obj=rec.company_id.currency_id)}
%if rec.multi_currency:
%endif
${_("Total Cleared Transactions")} | ${formatLang(rec.cleared_balance_in_currency, monetary=True, currency_obj=rec.account_id.currency_id)} | ${formatLang(rec.cleared_balance, monetary=True, currency_obj=rec.company_id.currency_id)}
%if rec.multi_currency:
%endif
${_("Cleared Balance")} | ${formatLang(rec.cleared_balance_in_currency + rec.starting_balance_in_currency, monetary=True, currency_obj=rec.account_id.currency_id)} | ${formatLang(rec.cleared_balance + rec.starting_balance, monetary=True, currency_obj=rec.company_id.currency_id)}
${_("Uncleared Transactions")} |  |
%if rec.multi_currency:
%endif
${_("Deposits and Credits")}${" - %s " % int(rec.sum_of_debits_lines_unclear)}${_("items")} | ${formatLang(rec.sum_of_debits_unclear_in_currency, monetary=True, currency_obj=rec.account_id.currency_id)} | ${formatLang(rec.sum_of_debits_unclear, monetary=True, currency_obj=rec.company_id.currency_id)}
%if rec.multi_currency:
%endif
${_("Cheques and Debits")}${" - %s " % int(rec.sum_of_credits_lines_unclear)}${_("items")} | ${formatLang(-rec.sum_of_credits_unclear_in_currency, monetary=True, currency_obj=rec.account_id.currency_id)} | ${formatLang(-rec.sum_of_credits_unclear, monetary=True, currency_obj=rec.company_id.currency_id)}
%if rec.multi_currency:
%endif
${_("Total Uncleared Transactions")} | ${formatLang(rec.uncleared_balance_in_currency, monetary=True, currency_obj=rec.account_id.currency_id)} | ${formatLang(rec.uncleared_balance, monetary=True, currency_obj=rec.company_id.currency_id)}
%if rec.multi_currency:
%endif

${_("Register Balance as of")}${" %s" % formatLang(rec.ending_date, date=True, currency_obj=rec.company_id.currency_id)}

${formatLang(rec.starting_balance_in_currency + rec.cleared_balance_in_currency + rec.uncleared_balance_in_currency, monetary=True, currency_obj=rec.account_id.currency_id)}

${formatLang(rec.starting_balance + rec.cleared_balance + rec.uncleared_balance, monetary=True, currency_obj=rec.company_id.currency_id)}

%endfor