public ActionResult GetAccSummaryTotalPartial(string parentAccId, bool isCreditAccount = false, DateTime?fromDate = null, DateTime?toDate = null) { //Fill Account Summary var accountSummary = AccountingRptHelper.GetAccountSummaryGrouped(parentAccId, isCreditAccount, fromDate, toDate); return(PartialView("~/Views/AccountingRpt/_TotalsSummaryTb.cshtml", accountSummary)); }
public ActionResult AccSummaryByParentAccId(string parentAccId, bool isCreditAccount = false, int bId = 0) { ViewBag.ParentAccId = parentAccId; ViewBag.IsCreditAccount = isCreditAccount; ViewBag.bId = bId; ViewBag.AccNameHeader = "Account Receivables"; ViewBag.AccountType = "Debit"; if (isCreditAccount) { ViewBag.AccNameHeader = "Account Payable"; ViewBag.AccountType = "Credit"; } //Fill Account Summary var accountSummary = AccountingRptHelper.GetAccountSummaryGrouped(parentAccId, isCreditAccount, bId: bId); return(View(accountSummary)); }