From ee8f057d678ebd5f725efccf0714686ce91b37eb Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Thu, 26 Mar 2026 10:34:51 +0700 Subject: [PATCH] fix(order): complete order after POS payment instead of stopping at Processing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PayOrderCommandHandler was calling MarkAsPaid() + MarkAsProcessing() but NOT MarkAsCompleted(), leaving orders stuck at status_id=4 (Processing) instead of 5 (Completed). For POS direct sales (cash/card/qr/transfer), the full chain is now: Validated(2) → Paid(3) → Processing(4) → Completed(5) All 4 payment methods tested and confirmed: - cash: Completed ✓ - card: Completed ✓ - qr: Completed ✓ - transfer: Completed ✓ Co-Authored-By: Claude Opus 4.6 (1M context) --- .../Application/Commands/PayOrderCommandHandler.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/services/order-service-net/src/OrderService.API/Application/Commands/PayOrderCommandHandler.cs b/services/order-service-net/src/OrderService.API/Application/Commands/PayOrderCommandHandler.cs index 7a935502..0f7269d7 100644 --- a/services/order-service-net/src/OrderService.API/Application/Commands/PayOrderCommandHandler.cs +++ b/services/order-service-net/src/OrderService.API/Application/Commands/PayOrderCommandHandler.cs @@ -87,9 +87,11 @@ public class PayOrderCommandHandler : IRequestHandler