Dev - Questions about the way taxes are calculated

Posted by Jacopo Cappellato on
URL: http://ofbiz.116.s1.nabble.com/Dev-Questions-about-the-way-taxes-are-calculated-tp167888.html

Hi all,

I have some questions about the way taxes are calculated (in the
"calcTax" service, implemented by the
TaxAuthorityServices.rateProductTaxCalc method):

1) why applicable tax rates are filtered by productStoreId? and why the
productStoreId is a mandatory parameter?

2) when applicable tax rates are searched, the rates for the _NA_ geoId
and taxAuthPartyId are always applied (in addition to others, country
specific, taxes); shouldn't the _NA_ taxes only applied when no other
taxes are found? I cannot see how the _NA_ taxes would be useful as they
are now...

About #1, I'd prefer to make the productStoreId optional so that, at least:
- if the store is passed, only the tax rates for the product stores are
applied (exactly as is now)
- if the store is not passed, only the tax rates in which the
productStoreId is null are applied

However, I really don't see big advantages of keeping the productStoreId
in the TaxAuthorityRateProduct at all.
As things are implemented now, if I'm not wrong, if I want to set up a
tax rate of 20% for all the Italian customers, and I have 20 stores,
I'll have to create 20 different rules (one for each store) for the same
rate (20%)...

Thanks for your help!!!

Jacopo
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev