medhatelmasry / GoodBooks

Accounting System built in ASP.NET DotNetCore, ReactJS, MobX. Don't forget to click STAR if you like this project.
http://accountgo.net
MIT License
4 stars 0 forks source link

Reports >> Income Statement is broken #8

Open medhatelmasry opened 8 months ago

medhatelmasry commented 8 months ago

ArgumentNullException: Value cannot be null. (Parameter 'source') System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) System.Linq.Enumerable.Where(IEnumerable source, Func<TSource, bool> predicate) AspNetCoreGeneratedDocument.Views_Financials_IncomeStatement.ExecuteAsync() in IncomeStatement.cshtml + var netIncome = Model.Where(a => a.IsExpense == false).Sum(a => a.Amount) - Model.Where(a => a.IsExpense == true).Sum(a => a.Amount);

Rai-Sahil commented 8 months ago

Previous owner have deleted the entire code for Income Statement. They have commented that "this generates an error a.ContraAccounts' is invalid inside an 'Include' operation".

I got the same error.

TODO: