I have modified the sales order header so that the user can enter a carriage amount. When they do this, a G/L order line is automatically created with a boolean to identify that it is a special type of line. I have added some code to the order line OnDelete trigger to warn the user if they try to delete this carriage line. This works as intended
However the code in the OnDelete trigger of the order lines is also executed if the user tries to delete the whole order. I dont want to display the warning in that situation.
Is there some way to know if the order line is being deleted because the whole order is being deleted ?
0
Answers
RIS Plus, LLC
He does
Someone needs to tell Luc that F11 doesn't work on MiBuSo.
In the OnDelete trigger of the sales header I now clear down the "Carriage Line" check box on any sales lines for that order. Therefore, when the lines are deleted the confirmation message doesnt get displayed.