Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
invoice_fixture_store_order.php
Go to the documentation of this file.
1 <?php
9 require 'order_fixture_store.php';
13  \Magento\Sales\Api\InvoiceManagementInterface::class
14 );
15 $invoice = $orderService->prepareInvoice($order);
16 $invoice->register();
17 $order = $invoice->getOrder();
18 $order->setIsInProcess(true);
20  ->create(\Magento\Framework\DB\Transaction::class);
21 $transactionSave->addObject($invoice)->addObject($order)->save();