zaahed / module-auto-invoice
Auto Invoice module for Vendic.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: *
- magento/module-payment: 100.4.*
- magento/module-sales: 103.0.*
README
Installation
To install this package with composer run the following commands inside your Magento 2 directory:
composer require zaahed/module-auto-invoice
bin/magento module:enable Zaahed_AutoInvoice
Check your environment mode bin/magento deploy:mode:show
and follow one of the two instructions below.
For production environments:
bin/magento maintenance:mode enable
bin/magento setup:di:compile
bin/magento cache:clean config
bin/magento maintenance:mode disable
For developer environments:
Remove the contents of the generated/
folder and run:
bin/magento cache:clean config
How to use
- Browse to your Magento 2 admin.
- Go to Stores > Configuration > Sales > Sales.
- Expand Auto Invoice and pick 'Yes' for the Enable field.
- Select your desired payment method(s) and click Save in the right upper corner.
Invoices should be automatically created after placing an order with the selected payment methods.
Why certain choices were made
A plugin is created for OrderManagementInterface::place because this class has the @api
tag and is used by the frontend, backend and Web API. The @api
ensures compatibility with future Magento 2 versions until the next major release.