26 \
Magento\Sales\Helper\Admin $adminHelper,
29 $this->_adminHelper = $adminHelper;
41 if (!$total->getIsFormated()) {
42 return $this->_adminHelper->displayPrices($this->
getOrder(), $total->getBaseValue(), $total->getValue());
44 return $total->getValue();
55 $this->_totals[
'subtotal'] = new \Magento\Framework\DataObject(
58 'value' => $this->
getSource()->getSubtotal(),
59 'base_value' => $this->
getSource()->getBaseSubtotal(),
60 'label' =>
__(
'Subtotal'),
67 if (!$this->
getSource()->getIsVirtual() && ((
double)$this->
getSource()->getShippingAmount() ||
68 $this->
getSource()->getShippingDescription())
70 $this->_totals[
'shipping'] = new \Magento\Framework\DataObject(
73 'value' => $this->
getSource()->getShippingAmount(),
74 'base_value' => $this->
getSource()->getBaseShippingAmount(),
75 'label' =>
__(
'Shipping & Handling'),
83 if ((
double)$this->
getSource()->getDiscountAmount() != 0) {
84 if ($this->
getSource()->getDiscountDescription()) {
85 $discountLabel =
__(
'Discount (%1)', $this->
getSource()->getDiscountDescription());
87 $discountLabel =
__(
'Discount');
89 $this->_totals[
'discount'] = new \Magento\Framework\DataObject(
92 'value' => $this->
getSource()->getDiscountAmount(),
93 'base_value' => $this->
getSource()->getBaseDiscountAmount(),
94 'label' => $discountLabel,
99 $this->_totals[
'grand_total'] = new \Magento\Framework\DataObject(
101 'code' =>
'grand_total',
103 'value' => $this->
getSource()->getGrandTotal(),
104 'base_value' => $this->
getSource()->getBaseGrandTotal(),
105 'label' =>
__(
'Grand Total'),
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Sales\Helper\Admin $adminHelper, array $data=[])