public ActionResult PrintInvoiceV(int id, int hbId) { var invObj = InvoiceHelper.GetInvoiceInfoNew(hbId, id, false); ///return new Rotativa.ViewAsPdf("PrintInvoiceV", invObj) { FileName = "TestViewAsPdf.pdf" }; return(View(invObj)); }
public ActionResult ViewInvoicePartial(int id, int hbId) { Session["invId"] = id; Session["hbId"] = hbId; var invObj = InvoiceHelper.GetInvoiceInfoNew(hbId, id, false); return(PartialView("~/Views/Invoice/_ViewInvoice.cshtml", invObj)); }
public ActionResult AddInvoice(int hbId, int invId = 0) { ViewBag.PaymentTerm = ListCommonHelper.GetPaymentTerm("en").Where(x => x.Key < 6).ToList(); ViewBag.CurrencyList = ListCommonHelper.GetCurrencyList(); var invObj = InvoiceHelper.GetInvoiceInfoNew(hbId, invId); return(View(invObj)); }
public ActionResult ViewInvoice(int id, int hbId) { var invObj = InvoiceHelper.GetInvoiceInfoNew(hbId, id, false); return(View(invObj)); }