In the current documentation for adding cart discounts (https://github.com/shopware/docs/blob/main/guides/plugins/plugins/checkout/cart/add-cart-discounts.md), there is a critical issue related to the discount recalculation when editing an order in the administration. Specifically, when a discount is applied to an order, and then the order is edited by double-clicking the discount and canceling the action, it triggers a recalculation of the discount. This causes the same discount to be added again to the order.
This behavior is not described in the documentation, and it creates confusion for users who are attempting to manage orders and discounts in the Shopware administration. It would be helpful to clarify the expected behavior in such scenarios and to provide a solution or workaround for this issue in the documentation.