diff --git a/config/lunar/orders.php b/config/lunar/orders.php index 3916644..a704e76 100644 --- a/config/lunar/orders.php +++ b/config/lunar/orders.php @@ -58,11 +58,23 @@ | make sense for the store you're building. | */ - 'draft_status' => 'awaiting-payment', + 'draft_status' => 'awaiting_payment', + // Two sequences — carrier and store-pickup — see Modules\Core\Order\ + // Services\OrderStatusFlow, the single source of truth for which + // transitions are actually offered from a given status. Payment + // timing (prepaid vs. cash-on-delivery) does not affect this + // sequence at all — see Order::paid/paid_at instead, an entirely + // independent field with no status value of its own. + // + // 'favourite' controls whether a status gets its own tab in the order + // list topbar (Lunar\Admin\...\ListOrders::getDefaultTabs()) — set + // only on the main-journey statuses so the topbar isn't cluttered + // with every branch/exception value; every status (favourite or not) + // remains reachable via the table's own status filter/search. 'statuses' => [ - 'awaiting-payment' => [ + 'awaiting_payment' => [ 'label' => 'Awaiting Payment', 'color' => '#848a8c', 'mailers' => [], @@ -70,17 +82,25 @@ 'favourite' => true, ], - 'payment-offline' => [ - 'label' => 'Payment Offline', + 'processing' => [ + 'label' => 'Processing', 'color' => '#0A81D7', 'mailers' => [], 'notifications' => [], 'favourite' => true, ], - 'payment-received' => [ - 'label' => 'Payment Received', - 'color' => '#6a67ce', + 'ready_for_dispatch' => [ + 'label' => 'Ready for Dispatch', + 'color' => '#c98a2e', + 'mailers' => [], + 'notifications' => [], + 'favourite' => true, + ], + + 'ready_for_pickup' => [ + 'label' => 'Ready for Pickup', + 'color' => '#c98a2e', 'mailers' => [], 'notifications' => [], 'favourite' => true, @@ -88,11 +108,78 @@ 'dispatched' => [ 'label' => 'Dispatched', + 'color' => '#0A81D7', 'mailers' => [], 'notifications' => [], 'favourite' => true, ], + 'delivery_failed' => [ + 'label' => 'Delivery Failed', + 'color' => '#c0392b', + 'mailers' => [], + 'notifications' => [], + 'favourite' => false, + ], + + 'picked_up' => [ + 'label' => 'Picked Up', + 'color' => '#3f7a5c', + 'mailers' => [], + 'notifications' => [], + 'favourite' => true, + ], + + // The parcel arriving and the return window opening are the same + // moment — one status value covers both. + 'delivered' => [ + 'label' => 'Delivered', + 'color' => '#c98a2e', + 'mailers' => [], + 'notifications' => [], + 'favourite' => true, + ], + + 'completed' => [ + 'label' => 'Completed', + 'color' => '#3f7a5c', + 'mailers' => [], + 'notifications' => [], + 'favourite' => true, + ], + + 'return_requested' => [ + 'label' => 'Return Requested', + 'color' => '#c98a2e', + 'mailers' => [], + 'notifications' => [], + 'favourite' => false, + ], + + 'returned' => [ + 'label' => 'Returned', + 'color' => '#c0392b', + 'mailers' => [], + 'notifications' => [], + 'favourite' => false, + ], + + 'partially_refunded' => [ + 'label' => 'Partially Refunded', + 'color' => '#c98a2e', + 'mailers' => [], + 'notifications' => [], + 'favourite' => false, + ], + + 'refunded' => [ + 'label' => 'Refunded', + 'color' => '#c0392b', + 'mailers' => [], + 'notifications' => [], + 'favourite' => false, + ], + ], /* diff --git a/config/lunar/panel.php b/config/lunar/panel.php index 04197c1..ce40d1a 100644 --- a/config/lunar/panel.php +++ b/config/lunar/panel.php @@ -46,6 +46,6 @@ | to include in the count below. | */ - 'order_count_statuses' => ['payment-received'], + 'order_count_statuses' => ['processing'], ];