15 public function isBarcodeExistAction(
string $barcode,
int $basketId,
int $orderId,
int $storeId)
17 if(!\
Bitrix\Main\Loader::includeModule(
"sale"))
19 throw new \Bitrix\Main\SystemException(
'Module Sale has not installed');
33 if((
int)$basketId <= 0)
39 if((
int)$orderId <= 0)
50 $orderClass = $registry->getOrderClassName();
52 $order = $orderClass::load($orderId);
56 $basket = $order->getBasket();
60 $basketItem = $basket->getItemById($basketId);
66 $result = \Bitrix\Sale\Provider::checkProductBarcode(
69 'BARCODE' => $barcode,
70 'STORE_ID' => $storeId
74 return [
'RESULT' => $result];
static loadMessages($file)
static getMessage($code, $replace=null, $language=null)