You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error executing API call (422: Unprocessable Entity): Order line 7 is invalid. The 'vatRate' field should have a maximum precision of 2. Field: lines.7.vatRate
#17
Open
d3mo17dot opened this issue
Jun 14, 2023
· 0 comments
This error happens in some cases with setting "VAT calculation of additional services: Calculate VAT proportionately" (The percentage of products in cart with the same VAT rate is used for calculating.).
When an order contains products with different VAT rates, there is a big chance the VAT rate for shipping costs will be calculated to a value with higher precision than 2.
This error happens in some cases with setting "VAT calculation of additional services: Calculate VAT proportionately" (The percentage of products in cart with the same VAT rate is used for calculating.).
When an order contains products with different VAT rates, there is a big chance the VAT rate for shipping costs will be calculated to a value with higher precision than 2.
Can it be a solution for you to change line https://github.com/mollie/mollie-oxid/blob/master/Application/Model/Request/Base.php#L412 to
'vatRate' => (float)$this->formatPrice($oOrder->oxorder__oxdelvat->value),
?The text was updated successfully, but these errors were encountered: