[url=https://dev.1c-bitrix.ru/api_d7/detail.php?ID=1779889]add[/url]
\Bitrix\Sale\Location\Bitrix\Main\Entity\AddResult public static
\Bitrix\Sale\Location\LocationTable::add(
array $data = array(),
array $behaviour = array('REBALANCE' => true, 'RESET_LEGACY' => true)
);
Adds a new location
Parameters
ParameterDescriptionVersion
$datato be added. Additional data keys could be passed:
NAME string[] : add name string to a newly created location
EXTERNAL string[] : add external data records to a newly created location
$behaviouran additional behaviour flags:
REBALANCE boolean (default: true) : do rebalance after add
Examples