Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] point_of_sale: make tests consistent wrt taxes
After rev d938ba8, taxes that are included in the price are subtracted in case the tax is not applied in an order (e.g. when the fiscal position remove the tax). Some of the test orders did not apply any tax, and because the products used in the test had some tax included, the above revision made the tests fail (by subtracting the tax amount from the price). Fixed by making the test orders more consistent wrt to taxes, applying the taxes as would happen in the UI, then correcting the payment amounts to include the extra tax amounts.
- Loading branch information