/** * Initialize order totals array * * @return $this */ protected function _initTotals() { parent::_initTotals(); $this->removeTotal('base_grandtotal'); if ((double) $this->getSource()->getAdjustmentPositive()) { $total = new \Magento\Framework\DataObject(['code' => 'adjustment_positive', 'value' => $this->getSource()->getAdjustmentPositive(), 'label' => __('Adjustment Refund')]); $this->addTotal($total); } if ((double) $this->getSource()->getAdjustmentNegative()) { $total = new \Magento\Framework\DataObject(['code' => 'adjustment_negative', 'value' => $this->getSource()->getAdjustmentNegative(), 'label' => __('Adjustment Fee')]); $this->addTotal($total); } /** <?php if ($this->getCanDisplayTotalPaid()): ?> <tr> <td colspan="6" class="a-right"><strong><?php echo __('Total Paid') ?></strong></td> <td class="last a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getTotalPaid()) ?></strong></td> </tr> <?php endif; ?> <?php if ($this->getCanDisplayTotalRefunded()): ?> <tr> <td colspan="6" class="a-right"><strong><?php echo __('Total Refunded') ?></strong></td> <td class="last a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getTotalRefunded()) ?></strong></td> </tr> <?php endif; ?> <?php if ($this->getCanDisplayTotalDue()): ?> <tr> <td colspan="6" class="a-right"><strong><?php echo __('Total Due') ?></strong></td> <td class="last a-right"><strong><?php echo $_order->formatPrice($_creditmemo->getTotalDue()) ?></strong></td> </tr> <?php endif; ?> */ return $this; }
/** * Initialize order totals array * * @return $this */ protected function _initTotals() { parent::_initTotals(); $this->removeTotal('base_grandtotal'); return $this; }