Do not apply promotions on return lines

issue7161
review37021002
This commit is contained in:
Cédric Krier committed 2018-02-28 19:01:20 +01:00
1 parent 2b309eed28
commit 77c6524f69
1 file changed
+3 -1
+3 -1
View File
@@ -234,7 +234,9 @@ class SalePromotion(ModelSQL, ModelView, MatchMixin):
yield category
category = category.parent
if self.unit and line.unit.category != self.unit.category:
if line.quantity < 0:
return False
elif self.unit and line.unit.category != self.unit.category:
return False
elif self.products and line.product not in self.products:
return False