Documentation

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

ParameterDescriptionVersion
$valueDiscount ID.
$primaryPrimary key.
$rowArray of current data.
$fieldObject of class \Bitrix\Main\Entity\Field.

Example



© «Bitrix24», 2001-2024
Up