Recently upgraded from 20.xxx (don’t remember exact version) to the latest 22.1.78 on Windows desktop install. Now all past sales invoices show $0 invoice totals and a status of overpaid. If I open up the invoice details all the information is correct. Also, if I then click the “update” button on the invoice screen (having made no changes) the issues seem to be fixed for that invoice. I’d rather not have to do this for all sales invoices so can you shed some light? I’m also not sure where else this upgrade has broken things.
Well, as I’ve been writing this now I’m noticing that since “fixing” one of the invoices via the method above the summary screen is now broken and I just get this error:
System.Collections.Generic.KeyNotFoundException: The given key 'Manager.Model.SalesInvoice' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Manager.Query.GeneralLedger.GeneralLedger.ConvertSalesInvoicesToCashBasis2(DateTime[] dates) in C:\projects\manager\Manager\Query\GeneralLedger\GeneralLedger.cs:line 912
at ManagerServer.HttpHandlers.Businesses.Business.Summary.SummaryView.InnerGet2() in C:\projects\manager\ManagerServer\HttpHandlers\Businesses\Business\Summary\SummaryView.cs:line 54
at ManagerServer.HttpHandlers.Businesses.Business.BusinessTemplate.InnerGet() in C:\projects\manager\ManagerServer\HttpHandlers\Businesses\Business\BusinessTemplate.cs:line 566
at ManagerServer.HttpHandlers.Template.Get() in C:\projects\manager\ManagerServer\HttpHandlers\Template.cs:line 380
at ManagerServer.HttpHandlers.HttpHandler.ProcessRequest() in C:\projects\manager\ManagerServer\HttpHandlers\HttpHandler.cs:line 154
at ManagerServer.Startup.<>c.<b__1_1>d.MoveNext() in C:\projects\manager\ManagerServer\Startup.cs:line 123
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
So basically a real mess. Any help would be appreciated! Thanks.