Exemple #1
0
        public async Task <IHttpActionResult> Post([FromBody] AdjustmentDTO adjustment)
        {
            var adjVoucher = new AdjVoucher
            {
                ItemNum       = adjustment.ItemNum,
                CreateDate    = DateTime.Today,
                Quantity      = adjustment.Quantity,
                Reason        = adjustment.Reason,
                Status        = AdjustmentVoucherStatus.Pending,
                RequestEmpNum = adjustment.RequestEmpNum
            };

            await _stockadjustmentRepo.AddAsync(adjVoucher);

            return(Ok(new { Message = "New adjusment sent" }));
        }