Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Go to the source code of this file.
Variables | |
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() | |
$order | |
$invoiceService = $objectManager->create(\Magento\Sales\Api\InvoiceManagementInterface::class) | |
$transaction = $objectManager->create(\Magento\Framework\DB\Transaction::class) | |
$invoice = $invoiceService->prepareInvoice($order) | |
$items = [] | |
foreach($order->getItems() as $orderItem) | $shipment = $objectManager->get(ShipmentFactory::class)->create($order, $items) |
$invoice = $invoiceService->prepareInvoice($order) |
Definition at line 37 of file order_with_shipping_and_invoice.php.
$invoiceService = $objectManager->create(\Magento\Sales\Api\InvoiceManagementInterface::class) |
Definition at line 18 of file order_with_shipping_and_invoice.php.
$items = [] |
Definition at line 42 of file order_with_shipping_and_invoice.php.
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager() |
Definition at line 11 of file order_with_shipping_and_invoice.php.
$order |
Definition at line 14 of file order_with_shipping_and_invoice.php.
foreach ( $order->getItems() as $orderItem) $shipment = $objectManager->get(ShipmentFactory::class)->create($order, $items) |
Definition at line 46 of file order_with_shipping_and_invoice.php.
$transaction = $objectManager->create(\Magento\Framework\DB\Transaction::class) |
Definition at line 21 of file order_with_shipping_and_invoice.php.