30 return \Bitrix\Sale\Registry::ENTITY_ORDER;
39 public function save()
41 $isChanged = $this->isChanged();
49 $result = parent::save();
51 if ($isChanged &&
$order->getId() > 0)
55 $orderHistory = $registry->getOrderHistoryClassName();
57 if ($result->isSuccess())
59 $orderHistory::addAction(
70 $orderHistory::collectEntityFields(
'PROPERTY',
$order->getId());
82 parent::callEventOnSalePropertyValueDeleted($values);
87 throw new Main\ObjectNotFoundException(
'Entity "Order" not found');
95 $orderHistory = $registry->getOrderHistoryClassName();
96 $orderHistory::addAction(
103 'NAME' => $values[
'NAME'],
104 'CODE' => $values[
'CODE'],
105 'VALUE' => $values[
'VALUE'],
113 Input\Manager::initJs();
114 \CJSCore::RegisterExt(
'SaleOrderProperties', [
115 'js' =>
'/bitrix/js/sale/orderproperties.js',
116 'lang' =>
'/bitrix/modules/sale/lang/'.LANGUAGE_ID.
'/lib/propertyvaluecollection.php',
120 \CJSCore::Init([
'SaleOrderProperties']);
static loadMessages($file)
const SALE_ORDER_HISTORY_ACTION_LOG_LEVEL_1