excel report account hd case summary
parent
b9e122edf1
commit
5b2d9cdf82
|
@ -340,6 +340,8 @@ class ReportAccountHDCaseSummary(Model):
|
||||||
'name': categ,
|
'name': categ,
|
||||||
'qty': qty,
|
'qty': qty,
|
||||||
})
|
})
|
||||||
|
data['categ_lines_txt']=', '.join(['%s: %s'%(l['name'], l['qty']) for l in data['categ_lines']])
|
||||||
|
data['types_txt']=', '.join(['%s: %s'%(l['name'], l['qty']) for l in data['types'] +[{"name": "Total", "qty": total_qty}]])
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def onchange_date(self,context={}):
|
def onchange_date(self,context={}):
|
||||||
|
|
Binary file not shown.
|
@ -25,14 +25,14 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
<th colspan="14" style="text-align:center">
|
<th colspan="14" style="text-align:center">
|
||||||
{{/ifeq}}
|
{{/ifeq}}
|
||||||
{{#if ptype_id}}
|
{{#if ptype_id}}
|
||||||
|
<span class="label label-default">Total: {{total_qty}}</span>
|
||||||
|
{{else}}
|
||||||
|
{{#each types}}
|
||||||
|
<span class="label label-{{color}}">{{name}}: {{qty}}</span>
|
||||||
|
{{/each}}
|
||||||
<span class="label label-default">Total: {{total_qty}}</span>
|
<span class="label label-default">Total: {{total_qty}}</span>
|
||||||
{{else}}
|
{{/if}}
|
||||||
{{#each types}}
|
|
||||||
<span class="label label-{{color}}">{{name}}: {{qty}}</span>
|
|
||||||
{{/each}}
|
|
||||||
<span class="label label-default">Total: {{total_qty}}</span>
|
|
||||||
{{/if}}
|
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue