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