在 Acumatica 的销售订单屏幕的 "Add Stock Item" 对话框中添加列

Add Column in "Add Stock Item" dialog box in Sales Order screen of Acumatica

如何将“库存项目”屏幕中的“项目类型”列添加到销售订单屏幕的“添加库存项目”对话框中。

Stock Item Image

Sales Order Dialog Image

是否有使用 Acumatica 自定义编辑器的直接方法我们可以完成这项工作,或者我需要使用编程或编码来完成任务

谢谢。

您应该为 BQLtableSOSiteStatusSelected 创建缓存扩展并添加一个新字段 UsrItemType,如下所示:

public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{
public sealed class SOSiteStatusSelectedExt : PXCacheExtension<SOSiteStatusSelected>
{
    [PXDBString(1, IsFixed = true, BqlField = typeof(InventoryItem.itemType))]
    [PXUIField(DisplayName = "Item Type", Visibility = PXUIVisibility.SelectorVisible)]
    [INItemTypes.ListAttribute]
    public string UsrItemType { get; set; }
    public abstract class usrItemType : BqlType<IBqlString, string>.Field<usrItemType> { }
}
}  

在此之后,在 销售订单 表单的 Inventory Lookup 屏幕上添加 UsrItemType 字段,来自 自定义项目编辑器 菜单。