[FIX] printscreen: fixed wrong total in print screen
bzr revid: hmo@tinyerp.com-20100216094806-090k2tvquc7dx8yf
This commit is contained in:
parent
7c5bc6cde0
commit
0434310146
|
@ -211,14 +211,14 @@ class report_printscreen_list(report_int):
|
||||||
col.text = tools.ustr(line[f] or '')
|
col.text = tools.ustr(line[f] or '')
|
||||||
if float_flag:
|
if float_flag:
|
||||||
col.set('tree','float')
|
col.set('tree','float')
|
||||||
if f != 'id' and temp[count] == 1:
|
if not line.get('__group') and f != 'id' and temp[count] == 1:
|
||||||
tsum[count] = float(tsum[count]) + float(line[f]);
|
tsum[count] = float(tsum[count]) + float(line[f]);
|
||||||
else:
|
else:
|
||||||
col.text = '/'
|
col.text = '/'
|
||||||
|
|
||||||
node_line = etree.SubElement(lines, 'row')
|
node_line = etree.SubElement(lines, 'row')
|
||||||
for f in range(0,count+1):
|
for f in range(0,count+1):
|
||||||
col = etree.SubElement(node_line, 'col', para='yes', tree='no')
|
col = etree.SubElement(node_line, 'col', para='group', tree='no')
|
||||||
if tsum[f] != None:
|
if tsum[f] != None:
|
||||||
if tsum[f] >= 0.01 :
|
if tsum[f] >= 0.01 :
|
||||||
prec = '%.' + str(tools.config['price_accuracy']) + 'f'
|
prec = '%.' + str(tools.config['price_accuracy']) + 'f'
|
||||||
|
|
Loading…
Reference in New Issue