acumatica - 在 Acumatica 销售订单屏幕的“添加库存项目”对话框中添加列
问题描述
如何将“库存项目”屏幕中的“项目类型”列添加到销售订单屏幕的“添加库存项目”对话框。
是否有任何使用 Acumatica 自定义编辑器的直接方法我们可以完成这项工作,或者我需要使用编程或编码来完成任务
谢谢。
解决方案
您应该为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
推荐阅读
- javascript - 如何使我的成功验证表单弹出停留更长时间?
- docker - 为猫鼬公开哪个端口?
- javascript - 无法从 React 状态访问对象数组中的值
- angular - 角度延迟加载的编译错误
- javascript - 如果属性不存在,则从数组中删除对象
- apache-spark - Databricks 集群在完成后获取执行程序日志
- python-3.x - 将 HTML 结果转换为浮点数
- postgresql - pg_restore 后引导 bucardo 复制
- android - Android 10:更新内核模块
- cron - Cron 作业应每 15 分钟运行一次,但不应在 9:00 (AM) 到 10:00 (AM) 之间运行