kowal.info

Auto Invoice

Composer kowal/magento-2-auto-invoice · Version 1.0.4

Product page

Auto Invoice — kowal.co

Description

Creates a Magento invoice after an order is placed with a selected payment or shipping method.

For whom

For order-management teams that invoice eligible Magento orders according to the payment or shipping method chosen at checkout.

Features

  • Choose the payment and shipping methods that trigger invoicing.
  • Register an invoice for an eligible order.
  • Optionally send the standard invoice email and log the matching decision.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/magento-2-auto-invoice
bin/magento module:enable Kowal_AutoInvoice
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

Under Stores → Configuration → Sales → Sales → Auto Invoice, select the store scope and turn on Enable Automatic Invoicing. Select entries under Payment Methods or Shipping Methods. A match in either list qualifies the order. Automatic invoicing is off by default. Enable Notify Customer to send the standard invoice email.

After checkout, the extension checks whether Magento can invoice the order. It creates the invoice with online payment capture turned off.

Requirements / notes

Creating an invoice does not collect a payment through the gateway. Check the payment transaction separately when reconciling the order.

FAQ

Must the order match both a payment method and a shipping method?

Either match qualifies. To invoice only on the basis of shipping, configure the shipping methods and leave the payment selection empty.

Verify the installation

In a test store, select one shipping method, leave the payment list empty and place two orders using different shipping methods. Check the Invoices tab on each order. The selected shipping method should produce an invoice. Enable Debug Log to see matching results and reasons for skipped orders in var/log/kowal_auto_invoice.log.