Hello All,
I have been working on trying to disable the Lot/Serial Nbr. selector field on the grid section of the Inventory Receipts screen (IN301000) through code, but it’s not working as expected.
I was able to successfully disable the unitCost field on the same grid, so I’m not sure what is preventing the Lot/Serial Nbr. selector field itself from being disabled/enabled.

Here is the code I am using:
public class INReceiptEntry_Ext : PXGraphExtension<INReceiptEntry>
{
protected void _(Events.RowSelected<INTran> e, PXRowSelected baseHandler)
{
baseHandler?.Invoke(e.Cache, e.Args);
if (e.Row == null) return;
PXUIFieldAttribute.SetEnabled<INTran.lotSerialNbr>(e.Cache, e.Row, false);
}
}
If anyone could help me with this, it would be really helpful.

