Magento 2 procedure to automatically invoice orders in a given status.
This extension supports the following versions of Magento:
- Community Edition (CE) versions 2.1.x
- Enterprise Edition (EE) versions 2.1.x
- Require the module via Composer
$ composer require aune-io/magento2-autoinvoice
- Enable the module
$ bin/magento module:enable Aune_AutoInvoice
$ bin/magento setup:upgrade
- Login to the admin
- Go to Stores > Configuration > Sales > Auto Invoice
- On Status, select the list of statuses that should be automatically invoiced
- Clean the cache
The module supports two different usage methods.
The following command will execute the procedure:
$ bin/magento aune:autoinvoice:process
A dry run mode is also available, just to see what orders would be affected by the procedure:
$ bin/magento aune:autoinvoice:process --dry-run=1
By activating the cron, the procedure will be automatically executed every hour.
- Login to the admin
- Go to Stores > Configuration > Sales > Auto Invoice
- Set Schedule procedure to yes
- Clean the cache
Author:
Licensed under the Open Software License version 3.0