[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 {}
|
return {}
|
||||||
|
|
||||||
def _total_of_the_day(self, objects):
|
def _total_of_the_day(self, objects):
|
||||||
if self.total:
|
return self.total or 0.00
|
||||||
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
|
|
||||||
|
|
||||||
def _sum_invoice(self, objects):
|
def _sum_invoice(self, objects):
|
||||||
return reduce(lambda acc, obj:
|
return reduce(lambda acc, obj:
|
||||||
|
|
Loading…
Reference in New Issue