|
|
@ -145,6 +145,7 @@ class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header) |
|
|
|
'name': account.name, |
|
|
|
'level': account.level, |
|
|
|
'balance': (account.balance and typ == 'liability' and -1 or 1 ) * account.balance, |
|
|
|
'type': account.type, |
|
|
|
} |
|
|
|
currency = account.currency_id and account.currency_id or account.company_id.currency_id |
|
|
|
if typ == 'liability' and account.type <> 'view' and (account.debit <> account.credit): |
|
|
@ -177,10 +178,12 @@ class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header) |
|
|
|
'name': cal_list['liability'][i]['name'], |
|
|
|
'level': cal_list['liability'][i]['level'], |
|
|
|
'balance':cal_list['liability'][i]['balance'], |
|
|
|
'type':cal_list['liability'][i]['type'], |
|
|
|
'code1': cal_list['asset'][i]['code'], |
|
|
|
'name1': cal_list['asset'][i]['name'], |
|
|
|
'level1': cal_list['asset'][i]['level'], |
|
|
|
'balance1':cal_list['asset'][i]['balance'], |
|
|
|
'type1':cal_list['asset'][i]['type'], |
|
|
|
} |
|
|
|
self.result_temp.append(temp) |
|
|
|
else: |
|
|
@ -190,10 +193,11 @@ class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header) |
|
|
|
'name': '', |
|
|
|
'level': False, |
|
|
|
'balance':False, |
|
|
|
'type':False, |
|
|
|
'code1': cal_list['asset'][i]['code'], |
|
|
|
'name1': cal_list['asset'][i]['name'], |
|
|
|
'level1': cal_list['asset'][i]['level'], |
|
|
|
'balance1':cal_list['asset'][i]['balance'], |
|
|
|
'type1':cal_list['asset'][i]['type'], |
|
|
|
} |
|
|
|
self.result_temp.append(temp) |
|
|
|
if i < len(cal_list['liability']): |
|
|
@ -202,10 +206,12 @@ class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header) |
|
|
|
'name': cal_list['liability'][i]['name'], |
|
|
|
'level': cal_list['liability'][i]['level'], |
|
|
|
'balance':cal_list['liability'][i]['balance'], |
|
|
|
'type':cal_list['liability'][i]['type'], |
|
|
|
'code1': '', |
|
|
|
'name1': '', |
|
|
|
'level1': False, |
|
|
|
'balance1':False, |
|
|
|
'type1':False, |
|
|
|
} |
|
|
|
self.result_temp.append(temp) |
|
|
|
return None |
|
|
|