Good day,
I am having an issue making available a custom field on the grid of Bills and Adjustments. I made the field available for the Workflow and I added an Event that has worked for me on other projects, but this time is not working properly. Even if I have PXUIFieldAttribute.SetEnabled the field is not available after closing a bill, but if use the line Base.Transactions.Cache.AllowUpdate = true then it will make available the custom field plus some other Acumatica fields that should not be available when the bill is closed, How can I make only my custom field available?
protected virtual void _(Events.RowSelected<APTran> e, PXRowSelected baseHandler)
{
APTran line = e.Row;
if (line == null) return;
APTranExt fieldExt = line.GetExtension<APTranExt>();
if (fieldExt == null) return;
baseHandler?.Invoke(e.Cache, e.Args);
//Base.Transactions.Cache.AllowUpdate = true;
PXUIFieldAttribute.SetEnabled<APTranExt.usrTaxLineField>(e.Cache, line, true);
}