Hello everyone, Can someone show me how to block the Unit price field in Sales Ordes Screen?
Thanks in advance!
Solved
How to block the Unit price field
Best answer by Naveen Boga
public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{
protected virtual void SOLine_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
SOLine row = e.Row as SOLine;
if (row != null)
{
PXUIFieldAttribute.SetEnabled<SOLine.curyUnitPrice>(cache, row, false);
}
}
}
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.