//should set collection date as next workign day

        public IActionResult CreateAdjustment(string itemId, int quantity, string reason)
        {
            string   userid = HttpContext.Session.GetString("userId");
            Employee emp    = deptService.findEmployeeById(userid);

            ViewData["user"] = emp;
            invService.CreateAdjustmentVoucher(userid, itemId, quantity, reason);
            return(RedirectToAction("ViewInventory"));
        }
        public ActionResult crateAdjustmentVouncher([FromBody] CreateAdjustmentvouncher value)
        {
            Inventory inventory = invService.findInventory(value.ItemCode);

            invService.CreateAdjustmentVoucher(value.EmEmployeeId, inventory.Id, value.qty, value.reason);
            Object response = new
            {
                message = "Successfully created",
                code    = HttpStatusCode.OK
            };

            return(Content(JsonConvert.SerializeObject(response)));
        }