internal List <InventoryStockVm> GetStockReportList(InventoryReportVm reportVm)
        {
            List <InventorySale> sales  = _reportDal.GetSalesByReportVm(reportVm);
            List <Order>         orders = _reportDal.GetOrdersByReportVm(reportVm);

            if (orders != null)
            {
                foreach (var item in orders)
                {
                    foreach (var itemDes in item.OrderDetail)
                    {
                        InventoryStockVm stockVm = new InventoryStockVm();
                        if (StockReportList.Any(m => m.ItemName == itemDes.Item.Name) == false)
                        {
                            stockVm.ItemName         = itemDes.Item.Name;
                            stockVm.StockQuantity    = _common.GetItemStockById(itemDes.Item.Id);
                            stockVm.CategoryFullPath = GetCategoryFullPathById(itemDes.Item.Id);
                            stockVm.Price            = itemDes.Item.CostPrice;
                            StockReportList.Add(stockVm);
                        }
                    }
                }
            }
            return(StockReportList.ToList());
        }
        public JsonResult GetItemStock(int id)
        {
            var ItemStock = common.GetItemStockById(id);

            return(Json(ItemStock));
        }