Hi everyone,
I’m trying to customize SOLine.AlternateID, but the original Acumatica logic is interfering with my functionality. Specifically, I need to remove the AlternativeItemAttribute from SOLine.AlternateID.
Here’s what I tried so far:
#region AlternateID
[PXMergeAttributes(Method = MergeMethod.Merge)]
[PXRemoveBaseAttribute(typeof(AlternativeItemAttribute))]
[PXDBDefault(null, PersistingCheck = PXPersistingCheck.Nothing)]
[BZAlternativeItemAttribute(INPrimaryAlternateType.CPN, typeof(SOLine.inventoryID), typeof(SOLine.subItemID), typeof(SOLine.uOM))]
protected virtual void SOLine_AlternateID_CacheAttached(PXCache sender) { }
#endregionHowever, this doesn’t seem to remove the attribute completely. Has anyone successfully removed or replaced the AlternativeItemAttribute from AlternateID? Any guidance or best practices would be greatly appreciated.
