Page 1 of 1

Use Allocated Stock - Popup

PostPosted: Fri Jan 26, 2024 12:00 am
by Riyaz
Hi There

We need to have the option of letting the available stock to be used in a SO when there is a back order, hence the ignore backorder allocations checkbox has been checked for some staff. But what this does is it pops up for every line item (screenshot attached of popup), and gets annoying if someone does 20 line items per order for 20 orders a day. Hence tried to suppress this popup, tried the below code, not able to fetch the popup name this way, as if its a serial stock, the name of the serial form pops up all the time. Can you pls advise on how to suppress this popup

#region "ApplicationManagerPlugin"
public class ApplicationManagerPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaApplicationManagerPlugin
{

public override object InitializeLifetimeService()
{
// returning null here will prevent the lease manager
// from deleting the Object.
return null;
}

public void Setup(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
Plugin.Manager.DialogFactory.AfterDialogStart += AfterDialogStart;
}
private void AfterDialogStart(JiwaFinancials.Jiwa.JiwaApplication.IJiwaDialog JiwaDialog)
{
if (JiwaDialog is JiwaFinancials.Jiwa.JiwaSerialNumbersUI.frmSerialSelector)
{
// MessageBox.Show(JiwaDialog.Form.Name);
}
}


}

Re: Use Allocated Stock - Popup

PostPosted: Thu Feb 01, 2024 10:38 pm
by Riyaz
Hi There

Pls let me know on this, hoping to get this sorted soon. Thanks

Re: Use Allocated Stock - Popup  Topic is solved

PostPosted: Tue Feb 06, 2024 1:46 pm
by Mike.Sheen
That is a MessageBox , not a dialog and so cannot be intercepted via the Dialog Factory.

There currently is no way to suppress this MessageBox when the IgnoreBackOrderAllocations user setting has been turned on, and the item being added or edited on the order has stock on shelf but other backorders exceed the available.

You can create an improvement request if you feel this is a change that should be in the software.