fix: Show Processing status orders in Pending Payment tab
- Modified OrdersController to include Processing (legacy) status in pending tab - Updated badge count to include Processing orders in PendingPaymentCount - Added database reset script that preserves bot tokens and integrations Processing status (OrderStatus=20) is a legacy unpaid status that should be visible in the Pending Payment workflow to allow staff to retry failed payment creation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -616,7 +616,8 @@ public class OrderService : IOrderService
|
||||
|
||||
var statusCounts = new OrderStatusCountsDto
|
||||
{
|
||||
PendingPaymentCount = orders.Count(o => o.Status == OrderStatus.PendingPayment),
|
||||
// Include legacy Processing status in PendingPayment count (orders stuck without payment)
|
||||
PendingPaymentCount = orders.Count(o => o.Status == OrderStatus.PendingPayment || o.Status == OrderStatus.Processing),
|
||||
RequiringActionCount = orders.Count(o => o.Status == OrderStatus.PaymentReceived),
|
||||
ForPackingCount = orders.Count(o => o.Status == OrderStatus.Accepted),
|
||||
DispatchedCount = orders.Count(o => o.Status == OrderStatus.Dispatched),
|
||||
|
||||
Reference in New Issue
Block a user