42 \
Magento\Sales\Helper\Admin $adminHelper,
45 $this->_adminHelper = $adminHelper;
47 parent::__construct($context,
$data);
58 if ($this->hasOrder()) {
61 if ($this->_coreRegistry->registry(
'current_order')) {
62 return $this->_coreRegistry->registry(
'current_order');
64 if ($this->_coreRegistry->registry(
'order')) {
65 return $this->_coreRegistry->registry(
'order');
67 throw new \Magento\Framework\Exception\LocalizedException(
__(
'We can\'t get the order instance right now.'));
77 $obj = $this->
getData(
'price_data_object');
108 return $this->_adminHelper->displayPrices(
145 $shipping =
$order->getShippingInclTax();
147 $baseShipping =
$order->getBaseShippingInclTax();
149 $shipping =
$order->getShippingAmount() +
$order->getShippingTaxAmount();
150 $baseShipping =
$order->getBaseShippingAmount() +
$order->getBaseShippingTaxAmount();
152 return $this->
displayPrices($baseShipping, $shipping,
false,
' ');
getData($key='', $index=null)
displayPriceAttribute($code, $strong=false, $separator='< br/>')
displayShippingPriceInclTax($order)
displayPrices($basePrice, $price, $strong=false, $separator='< br/>')
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Sales\Helper\Admin $adminHelper, array $data=[])