Commit Graph

9 Commits

Author SHA1 Message Date
Loretta 1448993fa7 Update DLL HintPaths to use $(Configuration); prod DB switch
Replaced hardcoded Debug paths in all .csproj files with $(Configuration) for AyCode and FruitBank DLL references, enabling correct DLL resolution for any build configuration. Switched appsettings.json connection string to use the FruitBank_PROD database. Added a null check for StockTaking in StockSignalREndpointServer.cs to prevent possible null reference exceptions. Noted some encoding issues in .csproj comments and copyright fields. No other functional changes.
2026-03-24 18:30:43 +01:00
Loretta 126849d930 Refactor stock taking logic; add item refresh endpoint
Refactored StockSignalREndpointServer to use helper methods for creating and updating StockTakingItem objects. Added a new SignalR endpoint to refresh StockTakingItem values. Updated order item retrieval logic and switched the connection string to use the FruitBank_DEV database. Commented-out logic for handling virtual stock was moved to helper methods.
2026-03-04 15:22:30 +01:00
Loretta 9bc7d4a27e Set IsMeasured=true in AddOrUpdateMeasuredStockTakingItemPallet
Ensure all stock taking item pallets are marked as measured
before adding or updating them via the SignalR endpoint.
2026-02-07 08:54:40 +01:00
Loretta 910a7aa852 Enable stock update on closure; adjust logging level
Uncommented the stock quantity and weight update during stock taking closure, ensuring inventory is updated in the database. Changed the log level for this operation from Info to Debug. Added a new using directive and left a commented block for potential future handling of "virtual" stock items.
2026-02-06 22:14:43 +01:00
Loretta c5da19a3ee Add logging for stock taking close operations
Added info logs to CloseStockTaking for invocation and item updates.
Added error log in StockSignalREndpointServer when closing fails.
2026-02-06 18:59:24 +01:00
Loretta 8574c2a136 Add AyCode.Core.Extensions using directive
Added the AyCode.Core.Extensions namespace to StockSignalREndpointServer.cs to enable access to its extension methods and utilities. No other changes were made.
2025-12-20 08:39:48 +01:00
Loretta e178c18f80 Add stock-taking enhancements and validation updates
Enhanced stock-taking functionality by introducing the `CloseStockTaking` method in `StockTakingDbContext` to manage session closures with validation. Added the `IsReadyForClose` method to `IMgStockTaking` and its implementation in `MgStockTaking`. Integrated `FruitBankDbContext` for stock updates.

Improved logging in `StockSignalREndpointServer` and added a new SignalR endpoint for closing stock-taking sessions. Updated `AddStockTaking` to initialize properties for new entries.

Simplified loading logic in `OrderItemDtoDbTable` by commenting out unnecessary `.ThenLoad` chains. Enhanced validation in `RefreshStockTakingItemMeasuredValuesFromPallets` and adjusted return statements in `AddOrUpdateMeasuredStockTakingItemPallet` and `UpdateStockTakingItemPallet` to fetch updated entities.

These changes improve maintainability, robustness, and functionality across the codebase.
2025-12-08 15:49:51 +01:00
Loretta bb553ed35d StockTaking in progress... 2025-12-04 13:52:46 +01:00
Loretta 070d7ec3d2 .Net10, VS2026; StockTaking in progress... 2025-12-01 16:17:57 +01:00