Exemplo n.º 1
0
        public ActionResult GetInvoice(int id)
        {
            ShopFloorModel model = CreateShopFloorModel(id, null);

            ViewBag.ActiveEmployees   = EmployeeServices.GetActiveEmployees();
            ViewBag.SignedInEmployees = InvoiceServices.GetSignedInEmployeeSelectList(base.LocationId);

            if (model.Invoice == null)
            {
                return(View("Index_NoData", model));
            }

            if (!string.IsNullOrEmpty(model.Invoice.StockNumber))
            {
                model.Invoice.History = InvoiceServices.GetStockNumberHistory(model.Invoice);
            }

            return(View("Index", model));
        }