InvoiceRoundTable::clearByOrder

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. InvoiceRoundTable
  4. clearByOrder
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/invoice/internals/invoiceround.php
  • Класс: Bitrix\Crm\Invoice\Internals\InvoiceRoundTable
  • Вызов: InvoiceRoundTable::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;
}

Добавить комментарий