• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/delivery/packing/container.php
  • Класс: BitrixSaleDeliveryPackingContainer
  • Вызов: Container::addBox
public function addBox(array $boxDims)
{
	$box = new Box($boxDims);

	foreach($this->availableVertexes as $vId => $v)
	{
		$box->move($v);

		if(!$this->isVertexSuitable($box))
			continue;

		$this->boxes[] = $box;
		unset($this->availableVertexes[$vId]);
		$this->refreshVertexesAfterBoxAdd($box);
		return true;
	}

	return false;
}