[FIX] point_of_sale: Wrong price of products when using fiscal positions and different taxes
Description of the issue/feature this MR addresses:
Let's say we have a product which has set a tax that is included in price. And there is a fiscal position where the tax is changed to another tax, that will use "included in price". Now switching the fiscal position in point of sale result in a unit price which is without any taxes calculated.
Here's an example:
Coffe: Price 3.50 €, Tax: 2.5% (included) Fiscal Position: switching Tax from 2.5% (included) to 7.7% (included)
Result after changing fiscal position on POS: Coffee: Price 3.41 € (3.50€ reduced by 2.5% tax) instead of 3.50 € (including 7.7% tax)
Current behavior before MR:
When changing fiscal position in POS the new calculated price is lower then the original price
Desired behavior after MR is merged:
When both taxes (source and target) are marked as "included in price" the unit price will not change.