controller/jobs/src/Controller/Jobs/Subscription/Process/Renew/Standard.php
protected function createOrderInvoice( \Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MShop\Order\Item\Base\Iface $basket )
	{
		$manager = \Aimeos\MShop::create( $context, 'order' );

		$item = $manager->createItem();
		$item->setBaseId( $basket->getId() );
		$item->setType( 'subscription' );

		return $manager->saveItem( $item );
	}
protected function createOrderInvoice( \Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MShop\Order\Item\Base\Iface $basket )
	{
		$manager = \Aimeos\MShop::create( $context, 'order' );

		$item = $manager->createItem();
		$item->setBaseId( $basket->getId() );
		$item->setType( 'subscription' );

		return $manager->saveItem( $item );
	}
protected function createOrderInvoice ( \ Aimeos \ MShop \ Context \ Item \ Iface $ context , \ Aimeos \ MShop \ Order \ Item \ Base \ Iface $ basket ) { $ manager = \ Aimeos \ MShop :: create ( $ context , 'order' ) ; $ item = $ manager -> createItem ( ) ; $ item -> setBaseId ( $ basket -> getId ( ) ) ; $ item -> setType ( 'subscription' ) ; return $ manager -> saveItem ( $ item ) ; }
Creates and stores a new invoice for the given order basket

@param \Aimeos\MShop\Context\Item\Iface Context object
@param \Aimeos\MShop\Order\Item\Base\Iface $basket Complete order with product, addresses and services saved to the storage
@return \Aimeos\MShop\Order\Item\Iface New invoice item associated to the order saved to the storage
Creates and stores a new invoice for the given order basket