Sales order line EFF value is getting disappeared after cancelling the lines.
Hi All,
We have line-level EFF fields, Reason Code1 and Reason Code2, in the sales order lines with predefined list of values that need to be selected when changing the ordered quantity in revision orders. Currently, when the ordered quantity is updated in the revision order lines and the user attempts to save, an error message is triggered through groovy extension, prompting the user to enter values in the line-level EFF fields. This behavior is working as expected.
However, while canceling a line, the ordered quantity changes to 0 as per the standard functionality in the sales order. During this process, when the user saves, the Groovy extension generates an error prompting the user to enter values in the line-level EFF fields due to the change in ordered quantity as expected. The user then selects the appropriate values from the list of values for the Reason Code EFF1 and submits the order. After the line is canceled, we noticed that the Reason Code EFF values disappear from the UI when viewing the sales order.