excel report account hd case summary
parent
b9e122edf1
commit
5b2d9cdf82
|
@ -340,6 +340,8 @@ class ReportAccountHDCaseSummary(Model):
|
|||
'name': categ,
|
||||
'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
|
||||
|
||||
def onchange_date(self,context={}):
|
||||
|
|
Binary file not shown.
|
@ -25,14 +25,14 @@
|
|||
{{else}}
|
||||
<th colspan="14" style="text-align:center">
|
||||
{{/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>
|
||||
{{else}}
|
||||
{{#each types}}
|
||||
<span class="label label-{{color}}">{{name}}: {{qty}}</span>
|
||||
{{/each}}
|
||||
<span class="label label-default">Total: {{total_qty}}</span>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue