示例#1
0
        public string GetItemSalesUoM(string sku)
        {
            dynamic table = new InventTableModule();
            var rec = table.First(ItemId:sku, ModuleType:2);

            if(rec != null)
                return rec.UNITID.ToString().Trim();

            return null;
        }
示例#2
0
        public decimal GetItemPrice(string sku)
        {
            dynamic table = new InventTableModule();
            var rec = table.First(ItemId:sku, ModuleType:2);

            if(rec != null)
                return rec.PRICE;

            return 0;
        }