Пример #1
0
        public ActionResult PrintInvoiceV(int id, int hbId, byte invFor, int operId)
        {
            InvoiceVm invObj;

            if (operId == 0)
            {
                invObj = APInvoiceHelper.GetInvoiceInfo(hbId, id, invFor, false); // old code .. will not happen
            }
            else
            {
                invObj = APInvoiceHelper.GetInvoiceInfoFullOperation(operId, id, invFor, false);
            }

            return(View("~/Views/Invoice/PrintInvoiceV.cshtml", invObj));
        }
Пример #2
0
        public ActionResult AddInvoice(int hbId, int operId = 0, int invId = 0, byte invFor = 1)
        {
            ViewBag.PaymentTerm  = ListCommonHelper.GetPaymentTerm("en").Where(x => x.Key < 6).ToList();
            ViewBag.CurrencyList = ListCommonHelper.GetCurrencyList();
            InvoiceVm invObj;

            if (operId == 0)
            {
                invObj = APInvoiceHelper.GetInvoiceInfo(hbId, invId, invFor); // old code .. will not happen
            }
            else
            {
                invObj = APInvoiceHelper.GetInvoiceInfoFullOperation(operId, invId, invFor);
            }
            return(View(invObj));
        }
Пример #3
0
        public ActionResult ViewInvoicePartial(int id, int hbId, byte invFor, int operId)
        {
            Session["invId"]  = id;
            Session["hbId"]   = hbId;
            Session["invFor"] = invFor;
            Session["operId"] = operId;

            InvoiceVm invObj;

            if (operId == 0)
            {
                invObj = APInvoiceHelper.GetInvoiceInfo(hbId, id, invFor, false); // old code .. will not happen
            }
            else
            {
                invObj = APInvoiceHelper.GetInvoiceInfoFullOperation(operId, id, invFor, false);
            }

            return(PartialView("~/Views/Invoice/_ViewInvoice.cshtml", invObj));
        }