Shopify has enhanced order editing by allowing users to add, remove, or update discounts on existing line items. Previously, discounts were limited to new items only. This improvement offers greater flexibility to meet customer expectations and improve retention, such as retroactively applying missed discounts. Note that only manually added discounts via editing or draft orders can be modified.
→ Read the full update on changelog.shopify.com