checkDiscountId
boolean|string public static \Bitrix\Catalog\DiscountCouponTable::checkDiscountId( integer $value, array|integer $primary, array $row, \Bitrix\Main\Entity\Field $field );
Checks that discount ID is higher than zero. Returns true щи success, otherwise returns message about discount ID is incorrect. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$value | Discount ID. | |
$primary | Primary key. | |
$row | Array of current data. | |
$field | Object of class \Bitrix\Main\Entity\Field . |
Example
© «Bitrix24», 2001-2024