getInvoice()->getOrder(); } /** * Retrieve source * * @return \Magento\Sales\Model\Order\Invoice */ public function getSource() { return $this->getInvoice(); } /** * Retrieve invoice model instance * * @return \Magento\Sales\Model\Order\Invoice */ public function getInvoice() { return $this->_coreRegistry->registry('current_invoice'); } /** * Retrieve order url * * @return string */ public function getOrderUrl() { return $this->getUrl('sales/order/view', ['order_id' => $this->getInvoice()->getOrderId()]); } /** * Retrieve formatted price * * @param float $price * @return string */ public function formatPrice($price) { return $this->getInvoice()->getOrder()->formatPrice($price); } }