Hi Emre today I have tried to insert some items in Inventory …Receipts …try some transactions example…and after a few test I have received the following crash messages when a entry in the Warehouse screen.
I have followed the example in your tutorial about include the Harburger …and follow the recepit …inventory. This tutorial works fine but then I start to include my test items and the result after a few test was the Crash…
All now works fine but there are problems with the Inventory part …
[General Info]
Application: SambaPOS
Version: 4.1.11 BETA
Region: en
DB: SQ
Machine: OSPITE-HP
User: Furbetta74
Date: 1/19/2014
Time: 4:23 PM
User Explanation:
Furbetta74 said “”
[Exception Info 1]
Top-level Exception
Type: System.Exception
Message: Inventory calculation generated an error. Check your recipes.
Source:
[Exception Info 2]
Top-level Exception
Type: System.InvalidOperationException
Message: Sequence contains more than one element
Source: System.Core
Stack Trace: at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source) at System.Data.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__2[TResult](IEnumerable
1 sequence)
at System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](IEnumerable1 query, Expression queryRoot) at System.Data.Objects.ELinq.ObjectQueryProvider.System.Linq.IQueryProvider.Execute[S](Expression expression) at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable
1 source, Expression1 predicate) at Samba.Infrastructure.Data.SQL.ReadOnlyEFWorkspace.Single[T](Expression
1 predictate, Expression1[] includes) at Samba.Persistance.Data.Dao.Single[T](Expression
1 predictate, Expression`1[] includes)
at Samba.Persistance.Implementations.InventoryDao.GetPeriodicConsumptionByWorkPeriodId(Int32 workPeriodId)
at Samba.Presentation.Services.Implementations.InventoryModule.ConsumptionBuilder…ctor(ICacheService cacheService, IInventoryDao inventoryDao, IApplicationState applicationState)
at Samba.Presentation.Services.Implementations.InventoryModule.InventoryService.GetCurrentWarehouseConsumptionFor(Int32 warehouseId)
at Samba.Modules.InventoryModule.WarehouseInventoryViewModel.UpdateSelectedWarehouse(Int32 warehouseId)
at Samba.Modules.InventoryModule.WarehouseInventoryViewModel.Refresh(Int32 warehouseId)
at Samba.Modules.InventoryModule.InventoryModule.OnNavigate(String obj)
[Assembly Info]
Samba.Services, Version=1.0.0.0
mscorlib, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
System, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
FluentValidation, Version=3.4.0.0
Samba.Domain, Version=1.0.0.0
DevExpress.Xpf.Grid.v13.2, Version=13.2.5.0
Stateless, Version=1.0.0.0
System.Core, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
Microsoft.CSharp, Version=4.0.0.0
DevExpress.Xpf.Grid.v13.2.Core, Version=13.2.5.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Persistance, Version=1.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v13.2, Version=13.2.5.0
PropertyTools, Version=2012.4.14.1
[System Info]
Operating System
-Microsoft Windows 7 Professional
–CodeSet = 1252
–CSDVersion = Service Pack 1
–CurrentTimeZone = 60
–FreePhysicalMemory = 1278836
–OSArchitecture = 32 bit
–OSLanguage = 1040
–ServicePackMajorVersion = 1
–ServicePackMinorVersion = 0
–Version = 6.1.7601
Machine
-OSPITE-HP
–Manufacturer = Hewlett-Packard
–Model = HP ProBook 6560b
–TotalPhysicalMemory = 3160784896
–UserName = OSPITE-HP\Furbetta74
Latest release of SambaPos installed…
Thank’s
Bye
Maurizio