Automatically invoice all complete orders in your Magento 2 store
Magento 2 procedure to automatically invoice orders in a given status.
This extension supports the following versions of Magento:
$ composer require aune-io/magento2-autoinvoice
$ bin/magento module:enable Aune_AutoInvoice $ bin/magento setup:upgrade
The configuration of this module is under Stores > Configuration > Sales > Auto Invoice. There, you will be able to activate processing via cron job, and choose the behaviour of the procedure.
The configuration matrix will allow you to set on for which combinations of status and payment method the extension should invoice the orders, as well as the destination status and capture mode. A configuration example follows.
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.
Author: - Renato Cason
Licensed under the Open Software License version 3.0