/// <summary> /// add invoice tax master. /// </summary> /// <param name="invoiceId"></param> /// <returns></returns> public async Task <IActionResult> AddInvoiceTaxMaster(int invoiceId) { ViewBag.DiscountTypeList = EnumHelper.GetEnumListFor <DiscountType>(); ViewBag.TaxAddOrDeductList = EnumHelper.GetEnumListFor <TaxAddOrDeduct>(); ViewBag.TaxLedgerList = await _ledger.GetLedgerSelectList(17); SalesInvoiceTaxModel salesInvoiceTaxModel = new SalesInvoiceTaxModel(); salesInvoiceTaxModel.InvoiceId = invoiceId; salesInvoiceTaxModel.SrNo = await _salesInvoiceTax.GenerateSrNo(invoiceId); return(await Task.Run(() => { return PartialView("_AddInvoiceTaxMaster", salesInvoiceTaxModel); })); }
public async Task <IActionResult> Index() { ViewBag.CustomerList = await _ledger.GetLedgerSelectList((int)LedgerName.SundryDebtor); return(await Task.Run(() => { return View(); })); }