Skip to content

Bug: Created Invoice in Xero not applying the correct product tax rate from Craft Commerce #8

@acantes

Description

@acantes

Hi Josh, as requested, here's the issue my client is having.

My client's Craft Commerce store has products with different TAX categories/rates. Basically as a UK shop products are either 20% VAT or 0% VAT.

Currently, if an order contains line item products with different tax rates then these are ignored when the order details are passed to Xero. Even if the tax rate should be 0% VAT in the Craft Commerce product then it's appearing in Xero as "20% (VAT on Income)" which I presume means that it's just using Craft's default tax category/rate which is 20% VAT in the case of this website.

Attached is my settings for the Xero plugin and then screenshots of an example Craft order and it's corresponding Xero invoice.

The knock-on effect of this is that Xero seems to keep the order total correct, but then creates a new rounding line on the invoice to accomplish this. The client now has incorrect tax records for accounting purposes, so this is a big issue for them.

craft-order

xero-invoice

xero-settings

Happy to send over more details on request. Thanks as always.

Craft v3.6.11.1
Xero plugin v1.0.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions