• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/rounding.php
  • Класс: BitrixCatalogRoundingTable
  • Вызов: RoundingTable::deleteByPriceType
static function deleteByPriceType(string|int $priceType): void
{
	$priceType = (int)$priceType;
	if ($priceType <= 0)
	{
		return;
	}
	$conn = MainApplication::getConnection();
	$helper = $conn->getSqlHelper();
	$conn->queryExecute(
		'delete from '.$helper->quote(self::getTableName()).' where '.$helper->quote('CATALOG_GROUP_ID').' = '.$priceType
	);
	unset($helper, $conn);
	ProductPrice::clearRoundRulesCache($priceType);
}