Hello together,
I'm looking for the function, that grabs the standard VAT for a product, if nothing (no VAT rule, use standard) is selcted.
If you create a new product with no rules, the value in virtuemart_product_prices -> product_tax_id is "0".
But there is no foreign key "0" in virtuemart_calcs. So where or how is the standard VAT to calculate selected?
I try to get order informations about text and value of the used tax and don't find it for a customized xml export.
Hope you can help me.
moped
Edit: I forgot, using VM 2.6.22
look here to understand the workaround of calc rules:
http://docs.virtuemart.net/tutorials/administration-configuration-vm-2/109-taxes-calculation-rules-case-1.html
Thank you for this link, but I still do not see how to get the values, if nothing is selected in Product -> Taxes & Calculation Rules.
Where or how is stored the standard value (product_tax_id = 0)? Or did I miss something in the linked page?
moped
If this is for a personal use, why you simply do not add it yourself when nothing is set?
Standard rules can depend on category,manufacturer,shoppergroups using VM selected price. So it's hard to know and export directly the tax applied(and discount) or if you have always same rules, then provide a way to apply a default tax name+rate
Ok, thank you for this information.
So there is no "easy" way to get these values and it's stored nowhere like in config or something.
I thought I can find a way to generate export files for different countries.
moped