Failure in updating percentage discount from sales order header to sales order lines

When changing the line discount group at sales order header level, and after activating the update discounts and discount percentage for order line update, the line discount percentage is not updated.

The failure to take into consideration the activation of the ‘Discount Update and Discount Percentage’ function.