Hi everyone,
Need to set a default warehouse for specific types of order in the form below.
Kindly assist
Hi everyone,
Need to set a default warehouse for specific types of order in the form below.
Kindly assist
Best answer by jinin
Hi
you should write the BQL to get the SiteID from the INSite table.
Example,
protected virtual void SOOrder_OrderNbr_FieldUpdated(PXCache sender, PXFieldUpdatedEventArgs e)
{
if (e.Row == null) return;
SOOrder row = (SOOrder)e.Row;
INSite site = PXSelectReadonly<INSite, Where<INSite.siteID, Equal<Required<INSite.siteID>>>>.Select(Base, "WarehouseName");
row.SiteID = site?.siteID;
}
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.