Skip to Content

New J2Commerce 6.6.5 is out. Here is everything in the release.

See What’s New
Account
Enter the email address on your account.
Forgot your username?
Enter your password.
Forgot your password?

Or continue with

Pending Public Category: Technical Support / Bugs Ticket #948

Tax and final prices issue

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

Conversation

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!

Attachments

YOYO ONLINE SALES INV - TESTING .pdf
invoice_YOYO052500013.pdf
Olivier Buisard Staff

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 missing, the 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.

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 Buisard Staff

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

Thank you for your patience!

Olivier.

Georgios Tsangarides

Dear Olivier,

We still have this issue. You can look at my latest order or any order with discount or without including C.O.D.  The tax ammount is not correct therefore the final amount is not correct either. 
It looks like the issue is with C.O.D and the Discount.  According to my accountance you have to put into the account all the values: subtotal minus discount and add shipping and C.O.D and then put into the account the VAT of 19%. Otherwise the VAT value is incorrect and the final price is also wrong.  Can you please check this again.

If the order doesn't have discount or C.O.D the tax is correct and the final price too

Kind regards
Yorgos

Olivier Buisard Staff

Hello Yorgos,

I have created a patch but I want to make sure this will work for everyone, so I am taking a bit of time for deep testing it.

Do you mind me taking a local version of your site (which I will delete as soon as tests are completed) to test it with real data? There is so much I can do with fake data... it's never 100% the same as dealing with real data.

Thanks!

Olivier.

Georgios Tsangarides

Please proceed.  This will help you understand better my store. 

Thanks

Yorgos

Georgios Tsangarides

Dear Olivier

I have this from my accountan:  Products; 35,29 + ACS (shipping):  3,90   = 39,19 -  7,06 the discount  = 32,13 Χ 19% (6,10 VAT) = Final Price 38,23

Olivier Buisard Staff

Hi Georgios.

Working on it this weekend. Thank you!

Olivier.

Olivier Buisard Staff

Little update:

I have sorted things out, cleared a few issues and worked out inconcistancies throughout an order's workflow.

Thanks to your help, I have 'abused' your site for all the testing. It is/was very helpful.

I am doing some final tests, but we should have it ready on time for 6.6.5.

Olivier.