I need order invoice details such as subTotal
, Tax
, shipping amount
, Discount amount
and Grand total
..etc.
This is my code :
$orderId = $this->getRequest()->getParam('orderNum');
$order = $this->orderFactory->create()->loadByIncrementId($orderId);
// I need to get invoice details here ...