首页 > 解决方案 > 在 Acumatica 销售订单屏幕的“添加库存项目”对话框中添加列

问题描述

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

库存物品图片

销售订单对话框图像

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

谢谢。

标签: acumaticaacumatica-kb

解决方案


您应该为BQL表创建缓存扩展SOSiteStatusSelected并添加一个新字段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> { }
}
}  

在此之后,从Customization Project Editor菜单 中的Sales Orders表单中添加屏幕上的UsrItemType字段。Inventory Lookup在此处输入图像描述


推荐阅读