masoodafar-web 4d7932f335
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 19m38s
fix(regular-store): deduct inventory and restore on cancel
- UserOrderService.SubmitShopBuyOrder: inject IInventoryService; validate
  available stock per item before any financial operation; call ConfirmSaleAsync
  and increment Product.SaleCount after order is persisted.
- CancelOrderByAdminCommandHandler: inject IInventoryService; include
  FactorDetails in query; call ProcessReturnAsync for each item so stock
  is restored when an order is cancelled by admin.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-17 21:57:48 +03:30
2025-12-07 18:00:01 +00:00
S
Description
No description provided
Readme 5.3 MiB
Languages
C# 97.1%
TSQL 2.7%