Trial balance From [[ data['form']['date1'] ]] to [[ data['form']['date2'] ]] [[ company.name ]] Complete Currency: [[ company.currency_id.name ]] Printing date: [[ time.strftime('%Y-%m-%d') ]] at [[ time.strftime('%H:%M:%S') ]] Code Account name Transactions Balance Debit Credit [[ repeatIn(lines(), 'a') ]][[ a['code'] ]] [[ '. . '*(a['level']-1) + a['name'] ]] [[ a['debit'] and '%.2f' % a['debit'] or '' ]] [[ a['credit'] and '%.2f' % a['credit'] or '' ]] [[ '%.2f'% a['balance'] ]] Balance brought forward [[ '%.2f' % sum_debit() ]] [[ '%.2f' % sum_credit() ]]