public ActionResult GetPendingBill() { List <PosDetails> posDetails = new List <PosDetails>(); BarcodeDataAccessLayer bdac = new BarcodeDataAccessLayer(); posDetails = bdac.GetPendingBill(); return(Ok(posDetails)); }
public ActionResult RePrintBill([FromBody] JObject postBody) { List <PosDetails> posDetails = new List <PosDetails>(); BarcodeDataAccessLayer bdac = new BarcodeDataAccessLayer(); string BillNumber = postBody["BillNumber"].ToString(); posDetails = bdac.RePrintBill(BillNumber); return(Ok(posDetails)); }
public ActionResult CheckBarcode([FromBody] JObject postBody) { List <PosDetails> posDetails = new List <PosDetails>(); BarcodeDataAccessLayer bdac = new BarcodeDataAccessLayer(); string BarcodeNumber = postBody["BarcodeNumber"].ToString(); string SingleBarcode = postBody["SingleBarcode"].ToString(); posDetails = bdac.PosInitialization(BarcodeNumber, SingleBarcode); //Definition in BarcodeDataAccessLayer //bdal.GetBarcodeNumber(BarcodeNumber); //barcode = bdal.GetBarcodeNumber(BarcodeNumber); return(Ok(posDetails)); }
public ActionResult StockUpdate([FromBody] JObject postBody) { BarcodeDataAccessLayer bdac = new BarcodeDataAccessLayer(); List <Barcode> barcode = new List <Barcode>(); //UserDetails ud = new UserDetails(); string UserID = postBody["UserID"].ToString(); // added by gautam string BarcodeNumber = postBody["BarcodeNumber"].ToString(); string StockAction = postBody["StockAction"].ToString(); List <StockStatus> ss1 = new List <StockStatus>(); ss1 = bdac.StockInitialization(BarcodeNumber, StockAction, UserID); return(Ok(ss1)); }
public ActionResult PendingBillClearance([FromBody] JObject postBody) { List <PosDetails> posDetails = new List <PosDetails>(); BarcodeDataAccessLayer bdac = new BarcodeDataAccessLayer(); string BillNumber = postBody["BillNumber"].ToString(); float AmountCleared = (float)Convert.ToDouble(postBody["AmountCleared"]); float PendingValue = (float)Convert.ToDouble(postBody["PendingValue"]); string UserID = postBody["UserID"].ToString(); posDetails = bdac.ClearPendingBill(BillNumber, AmountCleared, PendingValue, UserID); return(Ok(posDetails)); }
public ActionResult GenerateBarcodeByLot([FromBody] JObject postBody) { BarcodeDataAccessLayer bdac = new BarcodeDataAccessLayer(); List <Barcode> barcode = new List <Barcode>(); //UserDetails ud = new UserDetails(); string ProductID = postBody["ProductID"].ToString(); string Quantity = postBody["Quantity"].ToString(); string VendorID = postBody["VendorID"].ToString(); string UserID = postBody["UserID"].ToString(); string LotNumber = bdac.GetLotNumber(ProductID); DataTable table = bdac.InsertBarcode(ProductID, Convert.ToInt32(Quantity), LotNumber, VendorID); barcode = bdac.GetBarcodeList(table, LotNumber, ProductID, VendorID, UserID); return(Ok(barcode)); }