• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/invoice/internals/invoicediscount.php
  • Класс: Bitrix\Crm\Invoice\Internals\InvoiceDiscountDataTable
  • Вызов: InvoiceDiscountDataTable::clearByOrder
static function clearByOrder($order)
{
	$order = (int)$order;
	if ($order <= 0)
		return false;

	$conn = Main\Application::getConnection();
	$helper = $conn->getSqlHelper();
	$conn->queryExecute('delete from '.$helper->quote(self::getTableName()).' where '.$helper->quote('ORDER_ID').' = '.$order);
	unset($helper, $conn);

	return true;
}