I’m trying to add the Sales Order Custom Field “UsrBoard” to the SOShipment DAC but I’m getting Object reference error:
namespace UsrSOBoard
{
public class SOShipmentExt : PXCacheExtension<PX.Objects.SO.SOShipment>
{
#region UsrCustomField
protected int _UsrSOBoard;
[PXDBInt]
[PXIntList(new int[] {0, 1}, new string[] {"WMS", "MTM"})]
[PXUIField(DisplayName = "Board")]
[PXUnboundDefault(typeof(Search<SOOrderExt.usrBoard,
Where<SOOrder.orderNbr, Equal<Current<SOLine.orderNbr>>,
And<SOOrder.orderType, Equal<Current<SOLine.orderType>>>>>))]
public virtual int UsrSOBoard
{
get
{
return _UsrSOBoard;
}
set
{
_UsrSOBoard = value;
}
}
public abstract class usrSOBoard : IBqlField { }
#endregion
}
}
Best answer by Leonardo Justiniano
View original