#948 Tax and final prices issue

Posted in ‘Technical Support / Bugs’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

J2Commerce

Version
J2Commerce v6

Latest post by Olivier on Monday, 24 August 2026 19:18 UTC

Georgios Tsangarides

Dear friends,

I'm still trying to figure out how the store works and I've hit a wall. My accountant found some errors in the transactions, and the numbers just aren't adding up.

Here are the issues that need to be addressed:

- VAT is applied to everything in my store — products as well as services like shipping and COD (cash on delivery). This isn't reflected on the invoice the system generates.
- The coupon/discount is not being deducted before VAT, as it should be, which means the rest of the calculations come out wrong.
- The invoice needs to display the discount percentage applied (e.g. 20% or 15%), so the customer can clearly see how much of a discount they received.

The invoice should clearly show, as separate line items:
1. Product price before VAT
2. Discount (amount and percentage)
3. Shipping
4. COD fee
5. VAT
6. Final total

I'm attaching an invoice generated by the system, along with the format the accounting office is requesting, for comparison.

Could you please check the calculations being made and how they're laid out on the invoice?

Thank you so much!

Olivier

Hello Georgios,

I am going to recap to make sure we are on the same page.

I am going to take order #178670034313 as an example.

We have

Subtotal €35.29
Choose ACS Courier for fast delivery to your local ACS Office – often arriving the same day. €3.90
C.O.D €1.26
Coupon: MALI -€7.06
Default tax profile (19%) €7.45
Total €40.84

When we should have

Subtotal €35.29
Choose ACS Courier for fast delivery to your local ACS Office – often arriving the same day. €3.90
C.O.D €1.26
Coupon: MALI -€7.06
Default tax profile (19%) €7.68
Total €41.08

The coupon is properly based on the product before VAT.

The Cash On Delivery (C.O.D) is missing the tax, therefore the tax is incorrect and the total is incorrect.

Now, when printing the invoice:

The shipping tax is missingthe COD line is missing, the COD tax is missing and the discount does not show what was deducted (20%).

We are looking into this. Please let us know if we missed any issue.

Note: The COD tax issue is fixed and will be part of the upcoming release.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Georgios Tsangarides

Good afternoon Olivier,

The formula for this invoice needs to be calculated on the net amount after the discount.

So we have:
(35.29 − 7.06) + 3.90 + 1.26 = 33.39, × 19% VAT → tax of 6.3441 (not 7.68)

Final amount to be paid by the customer: 39.73

Thank you for your respond.

Georgios

Georgios Tsangarides
€35.29
€3.90
€1.26
-€7.06
Default tax profile (19%) €6.34 Total €39.73

 

Hi,

Thanks for looking into this — you're right about what you suggested, but my main concern is that the tax isn't showing the correct number, which makes the final price wrong. Here's a summary of the issues:

Calculation logic:

  • The coupon should be deducted from the net product price before VAT is applied.
  • The C.O.D. (Cash on Delivery) fee is missing its tax, which throws off the total tax and final amount.
  • Even where C.O.D. tax is applied, the total is still incorrect — VAT should always be calculated after the coupon has been deducted from the product price.

On the printed invoice:

  • Shipping tax is missing
  • The C.O.D. line item is missing
  • The C.O.D. tax is missing
  • The discount doesn't show the percentage applied (e.g. 20%)

Settings/configuration:

  • The administrator should have the option, in the settings, to choose whether VAT applies to C.O.D. and shipping — rather than this being hardcoded as a fixed rule that always applies VAT to both.

Could you please correct these so the invoice reflects the accurate tax and final total?

Thanks again!

Olivier

We have fixed those issues in the 6.6 version coming up. Hopefully this will address everything.

Thank you for your patience!

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.