【问题标题】:Acumatica table for inventory item last cost库存项目最后成本的 Acumatica 表
【发布时间】:2018-08-03 02:14:22
【问题描述】:

我正在尝试查找表格以提取在库存项目--价格/成本信息--最后成本下定义的项目的最后成本。数据类名称显示为 INItemCost,但是我在数据库中找不到它? 有任何想法吗 谢谢

【问题讨论】:

    标签: acumatica


    【解决方案1】:

    这必须是数据库中的 INItemStats 表:

    [PXProjection(typeof(Select2<InventoryItem, 
        LeftJoin<INItemStatsTotal, 
            On<INItemStatsTotal.inventoryID, Equal<InventoryItem.inventoryID>>, 
        LeftJoin<INSite, 
            On<INSite.siteID, Equal<InventoryItem.dfltSiteID>>>>, 
        Where<INItemStatsTotal.nextCostDate, IsNull>>))]
    [PXCacheName(Messages.ItemCostStatistics)]
    [Serializable]
    public partial class INItemCost : IBqlTable
    {
        ...
        #region LastCost
        public abstract class lastCost : IBqlField { }
    
        [PXDBPriceCost(BqlField = typeof(INItemStatsTotal.lastCost))]
        [PXDefault(TypeCode.Decimal, "0.0")]
        [PXUIField(DisplayName = "Last Cost", Enabled = false)]
        public virtual Decimal? LastCost { get; set; }
        #endregion
        ...
    }
    
    [PXBreakInheritance]
    [Serializable]
    [PXHidden]
    public partial class INItemStatsTotal : INItemStats
    {
        ...
    }
    
    [System.SerializableAttribute()]
    [PXCacheName(Messages.INItemStats)]
    public partial class INItemStats : PX.Data.IBqlTable
    {
        ...
        #region LastCost
        public abstract class lastCost : IBqlField { }
    
        [PXDBPriceCost()]
        [PXDefault(TypeCode.Decimal, "0.0")]
        [PXUIField(DisplayName = "Last Cost", Enabled = false)]
        public virtual Decimal? LastCost { get; set; }
        #endregion
        ...
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-19
      • 2020-09-23
      • 2018-06-03
      • 2021-12-11
      • 2019-10-22
      相关资源
      最近更新 更多