excel report account hd case summary

report_acc_hdcase_summary
watcha.h 2017-04-13 11:54:44 +07:00
parent b9e122edf1
commit 5b2d9cdf82
3 changed files with 9 additions and 7 deletions

View File

@ -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={}):

View File

@ -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>