Example #1
0
        public ActionResult ShowProductSalseHold(long productId)
        {
            var list   = salesServices.GetAll(x => x.DT81s.Any(p => p.ProductID == productId) && x.Status == (byte)VoucherStatus.Pending);
            var models = list.Select(x => new ShowQtyPending
            {
                VoucherNo = x.VoucherNo,
                Quantity  = x.DT81s.Where(p => p.ProductID == productId).Sum(s => s.Quantity ?? 0),
                SaffName  = x.User.FullName
            }).ToList();

            return(PartialView("_UserHoldOrderPending", models));
        }