Post by Kennynil » Wed Nov 30, 2022 3:26 am

I'm kinda stuck right now, any ideas how I can fix this in a easy way?

The problem is, my tax class is 25%.
The price in store is 100 what it should be, Price ex. tax is 80.

100 minus 25% should be 75, not 80.
but
80 plus 25% is 100.
How can i fix this so the Ex. tax price will be 75?

It will be totally wrong in the financial statements with the taxes this way.
I need to fix so I can add total price incl taxes from the admin panel. Have worked it out in earlier versions, but Twig is totally new to me.

Newbie

Posts

Joined
Wed Nov 30, 2022 3:11 am

Post by OSWorX » Wed Nov 30, 2022 4:52 am

Kennynil wrote:
Wed Nov 30, 2022 3:26 am
I'm kinda stuck right now, any ideas how I can fix this in a easy way?

The problem is, my tax class is 25%.
The price in store is 100 what it should be, Price ex. tax is 80.

100 minus 25% should be 75, not 80.
but
80 plus 25% is 100.
How can i fix this so the Ex. tax price will be 75?

It will be totally wrong in the financial statements with the taxes this way.
I need to fix so I can add total price incl taxes from the admin panel. Have worked it out in earlier versions, but Twig is totally new to me.
Sorry, but as it seems you do not understand how taxes, net and gross prices are calculated ..

100 = gross price (incl. 25% VAT).
Means 100 / 125 = 0.8
0.8 x 100 = 80

Doing the other way (add 25 to net value of 80):
80 + 25% = 100

The other "thing" is , how you operate your business.
You did'nt defined from where you are, but in many countries you can have your busines with or without VAT.

Means, as long as you do NOT earn up to an amount of X, you can calculate your prices WITHOUT VAT.
This to help "start ups" to be competetive against big(ger) players.

And this means also, if you do not have to caclulate any VAT, you have to define all prices NET.
Also, you can define only TAX RATES with the value of 0.
Means, you define only NET prices and in the frontend the NET price is also displayed.

But if your business is bigger (make more sales and is above the sum of X), and VAT has to be added, then the price you have to define at each product is also the NET value (never the GROSS value).
Because then, you have to create the proper TAX RATES (in your case 25% valid for country Y), and select then this tax rate at each product.

The system will calculate then the GROSS price in the shop automatically.

But general: forget OpenCart 4.x (any 4. version)!
And use 3.0.3.8 - the maintenance branch from Github, because at least starting with the 1st January 2023 you need php 8.x as base (enough threads here in this forum why this version shall be used and not 4.x).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by straightlight » Wed Nov 30, 2022 5:25 am

Or, the use of opencart-3 once the official solution for PHP 8.2 will be integrated.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 12 guests