conv_bal
watcha.h@almacom.co.th 2015-05-04 17:49:53 +07:00
parent e9253f1712
commit 4f38511f3b
2 changed files with 9 additions and 0 deletions

View File

@ -228,10 +228,19 @@ class ReportCycleItem(Model):
'qty': qty, 'qty': qty,
}) })
total_pt+=qty total_pt+=qty
vscl_lines2=[{}]
index=1
for vscl_line in vscl_lines:
vscl_lines2[0].update({
'v%s'%index: vscl_line['description'],
'v%s_1'%index: vscl_line['qty'],
})
index+=1
data={ data={
'company_name': company_name or "", 'company_name': company_name or "",
'lines': nlines, 'lines': nlines,
'vscl_lines': vscl_lines, 'vscl_lines': vscl_lines,
'vscl_lines2': vscl_lines2,
'ptype_lines': ptype_lines, 'ptype_lines': ptype_lines,
'month': month_str, 'month': month_str,
'date_from': date_from, 'date_from': date_from,