Does not currently support Excluded Line Adjustments

Created on 18 June 2025, 14 days ago

Problem/Motivation

This module does not currently correctly handle invoices with line adjustments which are set to 'Excluded'.

An example would be when using the Commerce Fee β†’ module to create a line item surcharge.

In this case, the invoice is raised in Xero without the fee included, and once the payment completes Xero will throw an error that the payment amount is greater than the invoice amount.

Steps to reproduce

1. Create a strategy with the following settings (Payment Gateway used does not matter):

2. Enable Commerce Fee module
3. Create a fee of a similar setup to this (you can also do this in code without any additional modules if preferable)

4. Attempt to process an order with the fee added
5. Xero module pushes invoice in ignoring the fees entirely
6. Xero fails with an error that the payment is greater than the invoice amount.

Proposed resolution

'Excluded' adjustments should be pushed into extra line items since Xero does not seem to support them natively.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom mattjones86 πŸ‡¬πŸ‡§ GMT+0

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024