I have created a custom field called HS Code in Stock Items (Screen ID IN202500) and managed to display it at line level on Sales Orders (Screen ID - SO301000) by customizing its attribute as shown below.
public class SOLineExt : PXCacheExtension<PX.Objects.SO.SOLine>
{
#region UsrHSCode
[PXDBString(50)]
[PXUIField(DisplayName = "HS Code", Visible = true, Enabled = false)]
[PXFormula(typeof(Selector<SOLine.inventoryID, InventoryItemExt.usrHSCode>))]
public virtual string UsrHSCode { get; set; }
public abstract class usrHSCode : PX.Data.BQL.BqlString.Field<usrHSCode> { }
#endregion
}
How would I go about adding the same field to Add SO Line dialog box on Invoices (Screen ID SO303000)?
How can I referenced the custom field correctly on Add SO Line dialog box on Invoices screen?