Post by fiscet » Fri Jan 25, 2013 2:02 am

Hi,
i need to set a negative tax rate, but the system ignore it!
I looked all the afternoon long for the code that calculates it ... but i couldn't find it :-(

Thanks

Newbie

Posts

Joined
Fri Jan 25, 2013 1:57 am

Post by i2Paq » Fri Jan 25, 2013 2:28 am

You need this why?

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by fiscet » Sat Jan 26, 2013 1:06 am

Because in Italy, if you sell services and you are a "libero professionista", you have to reduce the import of a 20% for the italian customers.
The customer will pay that amount directly to the Treasury. This is crazy, I know ...

Newbie

Posts

Joined
Fri Jan 25, 2013 1:57 am

Post by comprido » Fri Dec 20, 2013 1:58 am

We here at spain have the IRPF, same thing, have u solve it?

Thanks!

Pedro Martin - websitesbuilder.com.au
Checkout my free extensions: https://www.opencart.com/index.php?rout ... r=comprido


User avatar
New member

Posts

Joined
Mon Sep 10, 2012 11:46 pm

Post by comprido » Fri Dec 20, 2013 2:48 am

SOLVED!

OPEN: catalog/model/total/tax.php

SEARCH FOR:

if ($value > 0) {

CHANGE TO:

if ($value != 0) {

DONE!

Image

Pedro Martin - websitesbuilder.com.au
Checkout my free extensions: https://www.opencart.com/index.php?rout ... r=comprido


User avatar
New member

Posts

Joined
Mon Sep 10, 2012 11:46 pm

Post by butte » Fri Dec 20, 2013 8:30 am

That is a relief. The title suggested that someone has a government that refunds rather than collects sales taxes in advance.

There are other ways to interject an offset, but what you have seems to work, and simply, so go with it.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by Attagirl » Sun Jan 08, 2017 9:21 am

OpenCart 2.3.0.2. I need to show full tax rate by product and then a new line with 50% of that tax deducted. I have created tax rate with full amount and second rate with half that. Have set it so that both rates show (using store address and customer address). But can't use a negative percentage.
A message from Dec. 2013 showed changing OPEN: catalog/model/total/tax.php
if ($value > 0) {
CHANGE TO:
if ($value != 0) {
the files in 2.3 are different and I think the equivalent is system/library/cart/tax.php but not sure and not sure what I would change. Or is there a better way?

New member

Posts

Joined
Sun Jan 08, 2017 7:37 am

Post by Attagirl » Tue Jan 10, 2017 1:35 am

I found the file catalog/model/extension/total/tax.php and made the change previously suggested.

New member

Posts

Joined
Sun Jan 08, 2017 7:37 am
Who is online

Users browsing this forum: No registered users and 46 guests