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:
[ ] Create new method to get income statement from DB.
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);