[FIX] point_of_sale: Report error corrected.

bzr revid: uco@tinyerp.com-20100922131901-pcepmy97f75dpygv
This commit is contained in:
uco (Open ERP)
2010-09-22 18:49:01 +05:30
parent 503301db5c
commit 9a1ccd6f6a
@@ -67,7 +67,7 @@ class all_closed_cashbox_of_the_day(report_sxw.rml_parse):
def _get_bal(self,data):
res = {}
sql =""" select sum(pieces*number) as bal from singer_statement where starting_id = %d """%(data['id'])
sql =""" select sum(pieces*number) as bal from account_cashbox_line where starting_id = %d """%(data['id'])
self.cr.execute(sql)
res = self.cr.dictfetchall()
if res :
@@ -115,7 +115,7 @@ class all_closed_cashbox_of_the_day(report_sxw.rml_parse):
res = self.cr.dictfetchall()
for r in res :
total_ending_bal += (r['net_total'] or 0.0)
sql1 =""" select sum(pieces*number) as bal from singer_statement where starting_id = %d"""%(r['id'])
sql1 =""" select sum(pieces*number) as bal from account_cashbox_line where starting_id = %d"""%(r['id'])
self.cr.execute(sql1)
data = self.cr.dictfetchall()
if data[0]['bal']: