I want to calculate a special tax on shipping costs.
Someone purchased two products: one product with 6% taxes and one with 21%
- Product one is 7,50 with 6% tax included
- Product two is 2,50 with 21% tax included
Total amount is 10.00 euro with tax included
- So 75% of the products are taxed with 6% tax
- and 25% of the producs are taxed with 21% tax
Shipping costs are 3,50 with tax included, but: 75% of 3,50 needs to be taxed with 6% tax and 25% of 3,50 with 21%tax
How do I do this?
Create a tax code (new and specific to your case) where the calculation will result from a python formula
Code Python (TVA Incl)
result = ((price_unit*0.75*0.06) + (price_unit*0.25*0.21))
where price_unit is the price of the product "Shipping to be invoiced" (to be created in your system)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/24/14, 11:18 AM|
|Seen: 1047 times|
|Last updated: 3/16/15, 8:10 AM|