• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/check.php
  • Класс: BitrixSaleCashboxCheck
  • Вызов: Check::getDeliveryVatId
protected function getDeliveryVatId(Shipment $shipment)
{
	$calcDeliveryTax = MainConfigOption::get("sale", "COUNT_DELIVERY_TAX", "N");
	if ($calcDeliveryTax === 'Y' && $service = $shipment->getDelivery())
	{
		return $service->getVatId();
	}

	return 0;
}