/*CUSTOM*/ private void FillIndexViewBags(IPagedList <Invoice> invoices) { ViewBag.NetTotal = invoices.Sum(i => i.NetTotal); ViewBag.TotalWithVAT = invoices.Sum(i => i.TotalWithVAT); ViewBag.AdvancePaymentTaxAmountTotal = invoices.Sum(i => i.AdvancePaymentTaxAmount); }
/*CUSTOM*/ private void FillIndexViewBags(IPagedList<Invoice> invoices) { ViewBag.NetTotal = invoices.Sum(i => i.NetTotal); ViewBag.TotalWithVAT = invoices.Sum(i => i.TotalWithVAT); ViewBag.AdvancePaymentTaxAmountTotal = invoices.Sum(i => i.AdvancePaymentTaxAmount); }