Do not apply promotions on return lines
issue7161 review37021002
This commit is contained in:
1 parent
2b309eed28
commit
77c6524f69
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user