Hello community,
When posting a sales invoice I am adding a specific development :
Open new Form when clicking on OK button in Form SalesEditLines

The new form is a Dialog type with some traitment and conditions : When Clicking on OK Button on this new Form the invoice Posting will proceed, and when clicking on Cancel Button this form and the form SalesEditLines should be closed and the invoice posting should be cancelled.

I made an extension class of the method Clicked of the OK button in the form SalesEditLines as following to open the form.
My Question is : If I will Choose Cancel in my New Form how can I Cancel the call of OK Button or the invoice posting, or the CloseOK of the form SalesEditLines ?!
Is it possible or Not? If Yes please where should I place my Code