42 \
Magento\Sales\Helper\Data $salesData,
43 \
Magento\Shipping\Model\CarrierFactory $carrierFactory,
46 $this->_salesData = $salesData;
47 $this->_carrierFactory = $carrierFactory;
78 return $this->_coreRegistry->registry(
'current_shipment');
90 \
Magento\Backend\Block\Widget\Button::class,
92 'label' =>
__(
'Submit Shipment'),
93 'class' =>
'save submit-button primary',
94 'onclick' =>
'submitShipment(this);' 98 return parent::_beforeToHtml();
129 return $this->
getUrl(
'sales/*/updateQty', [
'order_id' => $this->
getShipment()->getOrderId()]);
139 return $this->_salesData->canSendNewShipmentEmail($this->
getOrder()->getStore()->getId());
149 $shippingCarrier = $this->_carrierFactory->create(
150 $this->
getOrder()->getShippingMethod(
true)->getCarrierCode()
152 return $shippingCarrier && $shippingCarrier->isShippingLabelsAvailable();
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry, \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, \Magento\Framework\Registry $registry, \Magento\Sales\Helper\Data $salesData, \Magento\Shipping\Model\CarrierFactory $carrierFactory, array $data=[])
addChild($alias, $block, $data=[])
getUrl($route='', $params=[])
getChildHtml($alias='', $useCache=true)