[FIX] point_of_point: POS sales details
Total of the day must include the invoiced lines. opw:634098
This commit is contained in:
parent
2d260b78d8
commit
163e7ee5ed
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue