Body: <p>I have a shop with products that have 6% VAT &amp; products with 21% VAT.
  The VAT rate that is applied to the shipping cost should depend on the VAT rate of the line item with the highest subtotal (excl VAT).</p>
  <p>So the tax rate applied to the shipping cost can be either 6% or 21%, depending on what is ordered.</p>
  <p>So for example:</p>
  <pre>1 Item X (6%): €14 (incl) = €13.2 (excl)
  1 Item Y (21%): €15 (incl) = €12.4 (excl)
  The VAT applied to the shipping cost should be 6% (value item x > value item y)</pre>
  <pre>1 Item X (6%): €14 (incl) = €13.2 (excl)
  2 Items Y (21%): €15 x 2 (incl) = €24.8 (excl)
  The VAT applied to shipping cost should be 21% (value items y > value item x)</pre>
  <p>I'm guessing you would need an adjuster for this scenario, but have really no idea to how to solve this or how to even get started? Anyone has any idea how to achieve this?</p>
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-13T09:27:38.767Z
Comments.Text: Could you link to the VAT regulation that supports this use case? Trying to understand the law/regulations behind this so we can look to support it. Thanks.
Comments.UserDisplayName: Luke Holder
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-13T10:15:14.003Z
Comments.Text: Unfortunately not, I only have a briefing from the accounting department. I did find a blog post explaining the situation (although they pick the lowest tax rate and not the highest as defined by my client). From how I understand it, in theory, the tax on the shipping should be calculated (and divided) based on what you order. But to keep it manageable, you are allowed to pick 1 rate and apply it to the shipping cost. https://blogbe.vgd.eu/en/optimal-management/tax/the-applicable-vat-rate-on-transport-costs-6-or-21 Thanks!
Comments.UserDisplayName: Fred
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-05T09:06:48.357Z
Comments.Text: @LukeHolder Do you think it is at all possible to somehow adjust the shipping cost tax based on what is ordered? Thanks!
Comments.UserDisplayName: Fred
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-21T15:48:47.487Z
Comments.Text: Having exactly the same requirement for a Client in Germany
Comments.UserDisplayName: Volker Andres
Tags: <plugin-craftcommerce><adjusters><tax>
Title: Commerce shipping tax rate based on tax rate of line items
ThreadText: # Commerce shipping tax rate based on tax rate of line items
  
  (Asked by: username_0 on 2022-07-13)
  
  I have a shop with products that have 6% VAT & products with 21% VAT.
  The VAT rate that is applied to the shipping cost should depend on the VAT rate of the line item with the highest subtotal (excl VAT).
  
  So the tax rate applied to the shipping cost can be either 6% or 21%, depending on what is ordered.
  
  So for example:
  
  ```
  1 Item X (6%): €14 (incl) = €13.2 (excl)
  1 Item Y (21%): €15 (incl) = €12.4 (excl)
  The VAT applied to the shipping cost should be 6% (value item x > value item y)
  ```
  
  ```
  1 Item X (6%): €14 (incl) = €13.2 (excl)
  2 Items Y (21%): €15 x 2 (incl) = €24.8 (excl)
  The VAT applied to shipping cost should be 21% (value items y > value item x)
  ```
  
  I'm guessing you would need an adjuster for this scenario, but have really no idea to how to solve this or how to even get started? Anyone has any idea how to achieve this?
  
  Thanks!
  
  **Tags:** plugin-craftcommerce, adjusters, tax
  
  > **Comments:**
  > **username_1**: Could you link to the VAT regulation that supports this use case? Trying to understand the law/regulations behind this so we can look to support it. Thanks.  
  > **username_0**: Unfortunately not, I only have a briefing from the accounting department. I did find a blog post explaining the situation (although they pick the lowest tax rate and not the highest as defined by my client). From how I understand it, in theory, the tax on the shipping should be calculated (and divided) based on what you order. But to keep it manageable, you are allowed to pick 1 rate and apply it to the shipping cost. https://blogbe.vgd.eu/en/optimal-management/tax/the-applicable-vat-rate-on-transport-costs-6-or-21 Thanks!  
  > **username_0**: @username_1 Do you think it is at all possible to somehow adjust the shipping cost tax based on what is ordered? Thanks!  
  > **username_2**: Having exactly the same requirement for a Client in Germany  
  
  ---
  
  ## 0 answers
  
  