3namespace Bitrix\Sale\Services\PaySystem\Restrictions;
5use Bitrix\Main\Localization\Loc;
6use Bitrix\Sale\PriceMaths;
8Loc::loadMessages(__FILE__);
17 protected static function getPrice($entityParams, $paramValue)
19 $percent = (float)$paramValue / 100;
20 $price = (float)$entityParams[
'PRICE_ORDER'] * $percent;
30 return Loc::getMessage(
'SALE_PS_RESTRICTIONS_BY_PERCENT_PRICE');
38 return Loc::getMessage(
'SALE_PS_RESTRICTIONS_BY_PERCENT_PRICE_DESC');
43 return Loc::getMessage(
'SALE_PS_RESTRICTIONS_BY_PERCENT_PRICE_ON_APPLY_ERROR_MSG');
57 'LABEL' => Loc::getMessage(
"SALE_PS_RESTRICTIONS_BY_PRICE_PERCENT_TYPE_MORE")
62 'LABEL' => Loc::getMessage(
"SALE_PS_RESTRICTIONS_BY_PRICE_PERCENT_TYPE_LESS")
static roundPrecision($value)
static getClassDescription()
static getPrice($entityParams, $paramValue)
static getOnApplyErrorMessage()
static getParamsStructure($entityId=0)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)