Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
checkrightsondecreasestoreamount.php
1<?php
2
4
6
15{
16 public const NAME = 'check_rights_on_decrease_store_quantity';
18
19 public const ENABLED_VALUE = 'E';
20 public const DISABLED_VALUE = 'D';
21 public const NOT_USED = 'N';
22
28 public static function isNotUsed(): bool
29 {
30 return self::get() === self::NOT_USED;
31 }
32
38 public static function isEnabled(): bool
39 {
40 return self::get() === self::ENABLED_VALUE && !State::isProductBatchMethodSelected();
41 }
42
48 public static function isDisabled(): bool
49 {
51 }
52
60 public static function isAvailableValue(string $value): bool
61 {
62 $available = [
66 ];
67
68 return in_array($value, $available, true);
69 }
70}
static isProductBatchMethodSelected()
Definition state.php:909