'documentType' =>
$documentType,
'documentRangerType' =>
$documentRangerType,
'custom' =>
[ 'invoiceNumber' => '1100',
],
];
} static::
assertEmpty($this->
getDocumentId($order->
getId()));
if ($documentType === CreditNoteRenderer::TYPE
) { $this->
addCreditItemToVersionedOrder($order->
getId(),
$context);
} if ($autoGenInvoiceDoc === true
) { $this->
createInvoiceDocument($order->
getId(),
$config,
$context,
$multipleDoc);
} /** @var FlowFactory $flowFactory */
$flowFactory =
$this->
getContainer()->
get(FlowFactory::
class);
$flow =
$flowFactory->
create($event);
$flow->
setConfig($config);