[ https://issues.apache.org/jira/browse/OFBIZ-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16641681#comment-16641681 ]
Benjamin Jugl commented on OFBIZ-4160: -------------------------------------- Hi, I am currently implementing multinational tax-calculation for a customer. The patch you provided herein works fine. Except when there are shippings and promotions to calculate. Then the algorithm searches for all entries in TAX_AUTHORITY_RATE_PRODUCT that are available for the PRODUCT_STORE and TAX_AUTH (and apply to shipping/promotions). So all taxes (regular and reduced) are applied to the shipping costs, which naturally leads to a higher amount overall. The correct procedure (at least in Germany and Austria) is to apply the tax for shipping according to the shipped items. So, if regular tax applies to the good, regular tax is applied to the shipping-costs. If multiple items are shipped and they have mixed taxes (some regular, some reduced) the calculation of the tax for shipping is weighted accordingly. I will dedicate myself to implementing this in this style and provide a patch when ready - provided that there are no objections. > Tax not added for order shipping or promotion > --------------------------------------------- > > Key: OFBIZ-4160 > URL: https://issues.apache.org/jira/browse/OFBIZ-4160 > Project: OFBiz > Issue Type: Bug > Components: accounting > Affects Versions: Release Branch 12.04, Release Branch 13.07, Trunk > Environment: rev 1065908 > Reporter: Paul Foxworthy > Assignee: Jacques Le Roux > Priority: Major > Labels: VAT, tax > Attachments: OFBIZ-4160_shipping_tax.patch > > > When shipping is calculated for the entire order or a promotion adjustment is > made, the relevant tax rows from the TaxAuthorityRateProduct table are not > being found. > Here's a patch. > This bug was discovered independently by Sergei Biletnikov, see > http://ofbiz.135035.n4.nabble.com/VAT-is-not-applied-for-the-shipping-td3234699.html. -- This message was sent by Atlassian JIRA (v7.6.3#76005)