Condition is cleaner, even if same.
This commit is contained in:
parent
0bb37047be
commit
5555009d7b
1 changed files with 1 additions and 1 deletions
|
|
@ -6738,7 +6738,7 @@ class Product extends CommonObject
|
|||
*/
|
||||
public function isStockManaged()
|
||||
{
|
||||
return (($this->isProduct() || ($this->isProduct() && getDolGlobalString('STOCK_SUPPORTS_SERVICES'))) && ($this->stockable_product > 0));
|
||||
return (($this->isProduct() || ($this->isService() && getDolGlobalString('STOCK_SUPPORTS_SERVICES'))) && ($this->stockable_product > 0));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue