Updating processing log for sales order header output
I want to prevent a custom sales order confirmation from printing when the order has not been approved. When the user requests the form to print in the background, I want to update the processing log to have a red light and a message indicating the order has not been approved, so it cannot be printed. When I pass an error message to the protocol processing, the update is terminated and my changes to the sales order are lost. Is there a way to update the processing log, show the red light, and not get the hard error?
Thank you in advance.