16 public function check($params): bool
18 $item = $params[
'item'];
23 StoreDocument::TYPE_DEDUCT,
24 StoreDocument::TYPE_MOVING,
25 StoreDocument::TYPE_SALES_ORDERS,
27 if (in_array($item->getType(), $typesWithCheck,
true))
29 $permission = PermissionDictionary::getStoreDocumentPermissionId(
30 PermissionDictionary::CATALOG_STORE_DOCUMENT_ALLOW_NEGATION_PRODUCT_QUANTITY,
34 return $this->checkPermission($permission);