Hello Acumatica Community,
I am working on a customization where I modify the InventoryID field in INTran. The customization works fine on the Transfer (IN304000) screen, but when applied to Receipt (IN301000) and other screens, the InventoryID selector appears empty.
Here is my code:
[PXNonInstantiatedExtension]
public class IN_INTran_ExistingColumn : PXCacheExtension<PX.Objects.IN.INTran>
{
#region InventoryID
[PXDefault()]
[StockItem(DisplayName = "Inventory ID")]
[PXSelector(typeof(Search2<InventoryItem.inventoryID,
InnerJoin<InventoryItemCurySettings,
On<InventoryItem.inventoryID, Equal<InventoryItemCurySettings.inventoryID>>>,
Where<InventoryItemCurySettings.dfltSiteID, Equal<Current<INRegister.siteID>>>>),
typeof(InventoryItem.inventoryCD),
typeof(InventoryItem.descr),
SubstituteKey = typeof(InventoryItem.inventoryCD))]
public int? InventoryID { get; set; }
#endregion
}Question:
How can I modify my customization to ensure that the InventoryID selector works correctly across all screens (IN304000, IN301000, etc.)?
Has anyone faced a similar issue when customizing INTran? Any guidance or alternative approaches would be appreciated!
Thanks in advance!