From 9a1ccd6f6a0be405b5f5142244a3a71d2a48d17d Mon Sep 17 00:00:00 2001 From: "uco (Open ERP)" Date: Wed, 22 Sep 2010 18:49:01 +0530 Subject: [PATCH] [FIX] point_of_sale: Report error corrected. bzr revid: uco@tinyerp.com-20100922131901-pcepmy97f75dpygv --- addons/point_of_sale/report/all_closed_cashbox_of_the_day.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py b/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py index dcbba147b59..fce080dfd0b 100644 --- a/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py +++ b/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py @@ -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']: