This PullRequest fixes or changes the following aspects of the taxes to be submitted to PayPal:
The OrderItemNonNeutralTaxesProvider determines both the TaxAdjustemts of the OrderItem and the respective TaxAdjustemts of all units and adds their amounts to an array. The PayPalItemDataProvider then iterates over these amounts and creates an item with quanity 1, unitPrice and tax. However, since an item can also have a quantity higher than 1, the totals no longer match in such a case.
To fix this error, the TaxAdjustments of the OrderItems are distributed to the respective units.
The OrderItemNonNeutralTaxesProvider only determines the non-neutral taxes. In order to transmit all taxes, the neutral taxes are also determined and processed.
Unfortunately, I am not a professional when it comes to tax law in different countries. Therefore, I would be grateful for any feedback if any problems arise.
This PullRequest fixes or changes the following aspects of the taxes to be submitted to PayPal:
To fix this error, the TaxAdjustments of the OrderItems are distributed to the respective units.
Unfortunately, I am not a professional when it comes to tax law in different countries. Therefore, I would be grateful for any feedback if any problems arise.