Hi Acumatica Community,
I'm working on a customization in Acumatica 24R2 (sandbox) where I want to show a confirmation dialog box before the "Remove Hold" action is executed on the Sales Order Invoice (ARInvoiceEntry) screen.
I’ve overridden the ReleaseFromHold method and added a dialog box like this:
Public delegate IEnumerable ReleaseFromHoldDelegate(PXAdapter adapter);
[PXOverride]
public IEnumerable ReleaseFromHold(PXAdapter adapter, ReleaseFromHoldDelegate baseMethod)
{
ARInvoice doc = Base.Document.Current;
if (doc != null)
{
// Show confirmation dialog
if (Base.Document.Ask("Confirm Freight Surchage,
"Please confirm the Freight Surcharge Amount before proceeding. Do you want to continue?",
MessageButtons.YesNo) == WebDialogResult.No)
{
return adapter.Get(); // Expected to cancel the action
}
PXTrace.WriteInformation("After confirmation check.");
}
// Proceed with the original Remove Hold logic
return baseMethod(adapter);
}
The issue is:
-
Even when the user clicks "No", the Remove Hold action is still executed.
-
In the trace, I can see that two commands related to
RemoveHoldare getting triggered. -
After this, the button becomes disabled, and I get the error: “The Remove Hold button is disabled.”
Here, 'Freight Surcharge' refers to a custom input field we’ve added to the invoice screen.
Please check below screenshots.



I’ve used this same approach successfully in 23R2 without issues. Is this behavior specific to 24R2?
I'd really appreciate any guidance or suggestions. Thanks in advance.

