-- HikaShop version -- : Business 2.6.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.3
Hello, some time ago, I developed a plugin in order to check VAT number depending on custom field "user_type". You can find in topic "
Invalid VAT number for individuals, what can I do?
".
It checks VAT number properly, but now our financial staff warn us about a problem with users with valid VAT number not in our country (Spain), because when a company with valid VAT number do an order, VAT must not apply because it is considering a "Intra-community sale".
Looking for where VAT is calculated, I found a function named "getTax" in class currency.php
function getTax($zone_id,$tax_category_id,$type=''){
This function seems to filter depending on "$type" parameter.
My question is, where can I set this "type" in checkout process? (note I have configured address before cart in checkout as you can see and I've set the "Type of of address used for tax" to billing.)
What can I do to set this parameter?
Regards