In this post I am going to explain how to get invoice details by invoice id in Magento 2. Using below code snippet you can get invoice details by passing invoice id. 1. Using Dependency Injection Add below code snippet in Block class. protected $_invoiceRepositoryInterface; protected $_logger; public function __construct( \Magento\Framework\View\Element\Template\Context $context, \Magento\Sales\Api\InvoiceRepositoryInterface $invoiceRepositoryInterface, \Psr\Log\LoggerInterface…


Recent Comments