Aged Balance for type
Date: format_date(date, user.language)
Party	str(term0) unit	str(term1) unit	str(term2) unit	str(term3)+ unit	Balance
for each="record in records"
record.party.rec_name	format_currency(record.term0, user.language, currency=company.currency)or ''	format_currency(record.term1, user.language, currency=company.currency) or ''	format_currency(record.term2, user.language, currency=company.currency) or ''	format_currency(record.term3, user.language, currency=company.currency) or ''	format_currency(record.balance, user.language, currency=company.currency) or ''
/for
Total	format_currency(sum(records, 'term0'), user.language, currency=company.currency)	format_currency(sum(records, 'term1'), user.language, currency=company.currency)	format_currency(sum(records, 'term2'), user.language, currency=company.currency)	format_currency(sum(records, 'term3'), user.language, currency=company.currency)	format_currency(sum(records, 'balance'), user.language, currency=company.currency)
Company: company.rec_name	Aged Balance for type	Print Date: format_date(datetime.date.today(), user.language) at datetime.datetime.now().strftime('%H:%M:%S')
User: user.rec_name	1/1