Invoices are now saved on the server during their generation (by default, when the order is paid).
Sylius\InvoicingPlugin\Creator\InvoiceCreator
class has 2 more dependencies:InvoicePdfFileGeneratorInterface $invoicePdfFileGenerator
andInvoiceFileManagerInterface $invoiceFileManager
Sylius\InvoicingPlugin\Email\InvoiceEmailSender
class 2nd dependency has been changed fromInvoicePdfFileGeneratorInterface $invoicePdfFileGenerator
toInvoiceFileProviderInterface $invoiceFileProvider
Sylius\InvoicingPlugin\Generator\InvoicePdfFileGenerator
class has additionalInvoiceFileNameGeneratorInterface $invoiceFileNameGenerator
dependency, placed on 4th place, beforestring $template
Sylius\InvoicingPlugin\Ui\Action\DownloadInvoiceAction
class 4th dependency has been changed fromInvoicePdfFileGeneratorInterface $invoicePdfFileGenerator
toInvoiceFileProviderInterface $invoiceFilePathProvider
Sylius\InvoicingPlugin\Converter\LineItemsConverter
class has additionalTaxRatePercentageProviderInterface $taxRatePercentageProvider
dependencySylius\InvoicingPlugin\Provider\TaxRateProvider
service has been changed toSylius\InvoicingPlugin\Provider\TaxRatePercentageProvider
and its service definition fromsylius_invoicing_plugin.provider.tax_rate
tosylius_invoicing_plugin.provider.tax_rate_percentage
Sylius\InvoicingPlugin\Converter\LineItemsConverter
service has been replaced bySylius\InvoicingPlugin\Converter\OrderItemUnitsToLineItemsConverter
andSylius\InvoicingPlugin\Converter\ShippingAdjustmentsToLineItemsConverter
Sylius\InvoicingPlugin\Generator\InvoiceGenerator
class has 2 more dependencies:LineItemsConverterInterface $orderItemUnitsToLineItemsConverter
andLineItemsConverterInterface $shippingAdjustmentsToLineItemsConverter
that replacedLineItemsConverterInterface $lineItemsConverter
- The return type of
Sylius\InvoicingPlugin\Converter\LineItemsConverterInterface:convert
method has been changed fromCollection
toarray
orderNumber
field onSylius\InvoicingPlugin\Entity\Invoice
has been removed and replaced with relation toOrder
entity.Sylius\InvoicingPlugin\Entity\InvoiceInterface::orderNumber
function is left due to easier and smoother upgrades, but is also deprecated and will be removed in thev1.0.0
release. UseSylius\InvoicingPlugin\Entity\InvoiceInterface::order
instead.Sylius\InvoicingPlugin\Doctrine\ORM\InvoiceRepositoryInterface::findOneByOrderNumber
method has been replaced bySylius\InvoicingPlugin\Doctrine\ORM\InvoiceRepositoryInterface::findOneByOrder
.Sylius\InvoicingPlugin\Factory\InvoiceFactoryInterface::createForData
takesOrderInterface $order
as the 3rd argument instead ofstring $orderNumber
.
-
Command bus
sylius_invoicing_plugin.command_bus
has been replaced withsylius.command_bus
. -
Event bus
sylius_invoicing_plugin.event_bus
has been replaced withsylius.event_bus
. -
Support for Sylius 1.8 has been dropped, upgrade your application to Sylius 1.9 or Sylius 1.10.
- The custom repository has been removed:
- the repository class
Sylius\InvoicingPlugin\Repository\DoctrineInvoiceRepository
has been removed and replaced bySylius\InvoicingPlugin\Doctrine\ORM\InvoiceRepository
. - the related service
sylius_invoicing_plugin.custom_repository.invoice
has been removed, usesylius_invoicing_plugin.repository.invoice
instead - the related interface
Sylius\InvoicingPlugin\Repository\InvoiceRepository
has been removed, useSylius\InvoicingPlugin\Doctrine\ORM\InvoiceRepositoryInterface
instead.
-
Upgrade your application to Sylius 1.8.
-
Remove previously copied migration files (You may check migrations to remove here).
-
Removed
InvoicingChannel
and replaced bySylius\Component\Core\Model\ChannelInterface
. -
Replaced
InvoiceShopBillingData
value object by entity withInvoiceShopBillingDataInterface
interface.