General Ledgerif test="not context.get('posted')" Draft/if
Fiscal Year: fiscalyear.rec_name
if test="start_period or end_period"
From Period: start_period.name if start_period else '' To end_period.name if end_period else ''
/if
if test="from_date or to_date"
From Date: format_date(from_date, user.language) if from_date else '' To format_date(to_date, user.language) if to_date else ''
/if
for each="account in accounts"
choose test=""
when test="account.general_ledger_balance"
Name
account.rec_name
Balance			format_currency(account.end_balance, user.language, company.currency)
/when
otherwise test=""
Name
account.rec_name
Date	Move	Debit	Credit	Balance	Description	Origin
Balance				format_currency(account.start_balance, user.language, company.currency)
for each="line in account.lines"
format_date(line.date, user.language)	line.move.rec_name	format_currency(line.debit, user.language, company.currency)	format_currency(line.credit, user.language, company.currency)	format_currency(line.balance, user.language, company.currency)	line.description or '' line.move_description_used or ''	getattr(line.origin, 'rec_name', '')
/for
Total		format_currency(account.end_debit - account.start_debit, user.language, company.currency)	format_currency(account.end_credit - account.start_credit, user.language, company.currency)	format_currency((account.end_debit - account.end_credit) - (account.start_debit - account.start_credit), user.language, company.currency)
Balance				format_currency(account.end_balance, user.language, company.currency)
/otherwise
/choose
/for
Company: company.rec_name	General Ledgerif test="not context.get('posted')" Draft/if	Print Date: format_date(datetime.date.today(), user.language) at datetime.datetime.now().strftime('%H:%M:%S')
User: user.rec_name	1/3