• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/discount.php
  • Класс: BitrixSaleDiscount
  • Вызов: Discount::fillShipmentData
protected function fillShipmentData()
{
	if (!$this->isShipmentExists())
		return;

	$this->orderData['DELIVERY_ID'] = $this->shipment->getDeliveryId();
	$this->orderData['CUSTOM_PRICE_DELIVERY'] = ($this->shipment->isCustomPrice() ? 'Y' : 'N');
	$this->orderData['BASE_PRICE_DELIVERY'] = $this->shipment->getField('BASE_PRICE_DELIVERY');
	$this->orderData['PRICE_DELIVERY'] = $this->shipment->getPrice();
	$this->orderData['PRICE_DELIVERY_DIFF'] = $this->shipment->getField('DISCOUNT_PRICE');
	$this->orderData['SHIPMENT_CODE'] = $this->shipment->getShipmentCode();
	$this->orderData['SHIPMENT_ID'] = (int)$this->shipment->getId();
}