tax report prob solved.....when invoice create and prin the report...
Error: 'Trlevelaaaaaa bzr revid: patelamit2003@gmail.com-20081014054835-x1ynvd9xxzd4yod4
This commit is contained in:
parent
c38dfe59f6
commit
2b01b81023
|
@ -83,12 +83,11 @@ class tax_report(rml_parse.rml_parse):
|
|||
|
||||
top_result.append(res_dict)
|
||||
res_general = self._get_general(res[i][1].id,period_list,company_id,based_on)
|
||||
print"====res_general===",res_general
|
||||
ind_general = 0
|
||||
while ind_general < len(res_general) :
|
||||
res_general[ind_general]['type'] = 2
|
||||
res_general[ind_general]['pos'] = 0
|
||||
res_general[ind_general]['level'] = res_dict['level'] + ' '
|
||||
res_general[ind_general]['level'] = res_dict['level']
|
||||
top_result.append(res_general[ind_general])
|
||||
ind_general+=1
|
||||
i+=1
|
||||
|
@ -144,7 +143,7 @@ class tax_report(rml_parse.rml_parse):
|
|||
GROUP BY account.id,account.name,account.code', ('draft',tax_code_id,
|
||||
company_id))
|
||||
res = self.cr.dictfetchall()
|
||||
print"======res=====",res
|
||||
|
||||
#AND line.period_id IN ('+ period_sql_list +') \
|
||||
|
||||
i = 0
|
||||
|
|
|
@ -215,19 +215,19 @@
|
|||
<para style="Caption">[[ repeatIn(get_lines(data['form']['based_on'],data['form']['periods'],data['form']['company_id']), 'o') ]]</para>
|
||||
<td>
|
||||
<para style="P5"><font color="white">[[ o['level'] ]]</font>
|
||||
[[o['type']==1 and ( setTag('para','para',{'fontName':'Helvetica'}))]]<font></font>
|
||||
<font>[[o['type']==1 and ( setTag('para','para',{'fontName':'Helvetica'}))]]</font>
|
||||
[[ setTag('tr','tr',{'style':'TrLevel'+str(o['level']), 'paraStyle':('Level'+str(o['level']))}) ]]<font></font>
|
||||
[[ o['code'] ]] [[ o['name'] ]]<font></font>
|
||||
</para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P6">[[o['type']==2 and (o['debit']) ]]</para>
|
||||
<para style="P6">[[o['type']==2 and (o['debit']) or '0.0' ]]</para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P6"> [[o['type']==2 and (o['credit']) ]] </para>
|
||||
<para style="P6"> [[o['type']==2 and (o['credit']) or '0.0' ]] </para>
|
||||
</td>
|
||||
<td>
|
||||
<para style="P6">[[ o['tax_amount'] ]]</para>
|
||||
<para style="P6">[[ o['tax_amount'] or '0.0' ]]</para>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue