Hello,
I believe the below code should always disable the BasePrice field on the IN202000->PriceCost tab. But it does not.
public class NonStockItemMaint_Extension : PXGraphExtension<PX.Objects.IN.NonStockItemMaint>
{
#region Event Handlers
protected virtual void _(Events.RowSelected < InventoryItem> e)
{
if (e.Row is InventoryItem row)
{
PXUIFieldAttribute.SetEnabled<InventoryItemCurySettings.basePrice>(e.Cache, row, false);
}
}
}
Best answer by Fernando Amadoz
View original