示例#1
0
        public bool UpdateItemReceived([FromBody] List <PurchaseOrderDetail> podlist)
        {
            if (podlist == null || podlist.Count == 0)
            {
                throw new Exception("Error in updating item received. Please ensure all fields are completed");
            }
            int clerkid = (int)HttpContext.Session.GetInt32("Id");

            foreach (PurchaseOrderDetail podid in podlist)
            {
                podid.ReceivedByClerkId = clerkid;
            }
            scservice.UpdatePurchaseOrderDetailItem(podlist);
            return(true);
        }