86c64gh5v - Using custom cart amount rule for better rounding
1. Why is this change necessary?
It's a bug fix.
2. What does this change do, exactly?
It implements a new condition, based on the original CartAmountRule that rounds the cart price by the contexts precision (usually its 2) and assigns it automatically to the existing rule (on installation & update of the plugin) and also changes the rounding behavior in the PaymentMethodRoute
3. Describe each step to reproduce the issue or behavior.
I was not able to reproduce the original behavior with prepaid where the payment was not available when using all prepaid in the cart...
You can test:
- If the condition "Gesamtsumme" is replaced by "Gesamtsumme - OAH" in the rule "Free | OrderAmountHandler"
- If the free payment is still chosen correctly in the storefront
4. Please link to the relevant issues (if any).
https://app.clickup.com/t/86c64gh5v
5. Checklist
-
I have updated the plugin version and changelog -
I have updated the manual / created a manual update merge request -
I have updated the shopware store information -
I can confirm the code style fits our requirements -
I can confirm that no debug output is generated anywhere