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']: