Invoice.php 744 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Invoice tracking control form
  8. */
  9. namespace Magento\Shipping\Block\Adminhtml\Order\Tracking;
  10. /**
  11. * @api
  12. * @since 100.0.2
  13. */
  14. class Invoice extends \Magento\Shipping\Block\Adminhtml\Order\Tracking
  15. {
  16. /**
  17. * Retrieve invoice
  18. *
  19. * @return \Magento\Sales\Model\Order\Shipment
  20. */
  21. public function getInvoice()
  22. {
  23. return $this->_coreRegistry->registry('current_invoice');
  24. }
  25. /**
  26. * Retrieve carriers
  27. *
  28. * @return array
  29. */
  30. protected function _getCarriersInstances()
  31. {
  32. return $this->_shippingConfig->getAllCarriers($this->getInvoice()->getStoreId());
  33. }
  34. }