aune-io/magento2-autoinvoice dev-master

Automatically invoice all complete orders in your Magento 2 store

Type

magento2-module

License

OSL-3.0

Requires
Requires (dev)
Suggests

None

Provides

None

Conflicts

None

Replaces

None

Magento 2 Auto Invoice

Magento 2 procedure to automatically invoice orders in a given status.

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads License

System requirements

This extension supports the following versions of Magento:

  • Community Edition (CE) versions 2.2.x
  • Enterprise Edition (EE) versions 2.2.x

Installation

  1. Require the module via Composer

    $ composer require aune-io/magento2-autoinvoice
    
  2. Enable the module

    $ bin/magento module:enable Aune_AutoInvoice
    $ bin/magento setup:upgrade
    

Configuration

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. A configuration example follows.

Usage

The module supports two different usage methods.

Command line

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

Cron

By activating the cron, the procedure will be automatically executed every hour.

  1. Login to the admin
  2. Go to Stores > Configuration > Sales > Auto Invoice
  3. Set Schedule procedure to yes
  4. Clean the cache

Authors, contributors and maintainers

Author:

License

Licensed under the Open Software License version 3.0