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:
@@ -23,7 +23,10 @@ public class OrdersController : Controller
|
||||
switch (tab.ToLower())
|
||||
{
|
||||
case "pending":
|
||||
ViewData["Orders"] = await _orderService.GetOrdersByStatusAsync(LittleShop.Enums.OrderStatus.PendingPayment);
|
||||
// Include both PendingPayment and legacy Processing status (orders stuck without payment)
|
||||
var pendingOrders = await _orderService.GetOrdersByStatusAsync(LittleShop.Enums.OrderStatus.PendingPayment);
|
||||
var processingOrders = await _orderService.GetOrdersByStatusAsync(LittleShop.Enums.OrderStatus.Processing);
|
||||
ViewData["Orders"] = pendingOrders.Concat(processingOrders).OrderByDescending(o => o.CreatedAt);
|
||||
ViewData["TabTitle"] = "Pending Payment";
|
||||
break;
|
||||
case "accept":
|
||||
|
||||
Reference in New Issue
Block a user