Beispiel #1
0
        public ActionResult Details(string invNumber)
        {
            if (string.IsNullOrEmpty(invNumber))
            {
                return(RedirectToAction("Details"));
            }
            BillingMain bm = new BillingMain();

            bm = bm.getBillInfo(((Shop)Session["Shop"]).ShopNumber, invNumber);
            return(View(bm));
        }
Beispiel #2
0
        public ActionResult CancelBill(string invNumber)
        {
            bool        success = false;
            string      message = "";
            BillingMain bm      = new BillingMain();

            bm = bm.getBillInfo(((Shop)Session["Shop"]).ShopNumber, invNumber);
            if (bm.UpdateBillStatus("Cancelled"))
            {
                success = true;
                message = "Bill Cancelled Successfully";
            }
            else
            {
                success = false;
                message = "Bill Cancellation Failed";
            }
            return(Json(new { success = success, message = message }, JsonRequestBehavior.AllowGet));
        }