[FIX] point_of_point: POS sales details

Total of the day must include the invoiced lines.

opw:634098
This commit is contained in:
Goffin Simon 2015-05-05 12:09:25 +02:00
parent 2d260b78d8
commit 163e7ee5ed
1 changed files with 1 additions and 7 deletions

View File

@ -129,13 +129,7 @@ class pos_details(report_sxw.rml_parse):
return {}
def _total_of_the_day(self, objects):
if self.total:
if self.total == self.total_invoiced:
return self.total
else:
return ((self.total or 0.00) - (self.total_invoiced or 0.00))
else:
return False
return self.total or 0.00
def _sum_invoice(self, objects):
return reduce(lambda acc, obj: