Client has come back to me with a little issue.
When the period is locked, they get the dialog that the period is locked. All good there.
But the sales order sits there with the save & cancel active & it would seem the user defaults to saving the order.
This sets the sales order as processed, but really it hasn't.
When the user clicks OK on the Period Lock dialog, I want to automatically cancel.
I've tried just doing a read but that doesn't work.
- Code: Select all
salesOrder.Read(salesOrder.InvoiceID);
Tried doing this also but that didn't help either.
- Code: Select all
throw new JiwaFinancials.Jiwa.JiwaApplication.Exceptions.ClientCancelledException();
How can I get the sales order to automatically cancel when the period lock dialog is displayed?