diff --git a/app/Models/Service.php b/app/Models/Service.php
index 7c324a1..d75d038 100644
--- a/app/Models/Service.php
+++ b/app/Models/Service.php
@@ -65,7 +65,9 @@ class Service extends Model
// Order Cancelled
'ORDER-CANCELLED' => [],
// Order Sent to Supplier
- 'ORDER-SENT' => ['update_reference'=>'ORDER-SENT'],
+ 'ORDER-SENT' => ['update_reference'=>'ORDER-SENT','confirm'=>'ORDERED'],
+ // Order Confirmed by Supplier
+ 'ORDERED' => ['update_reference'=>'ORDER-SENT'],
];
/**
@@ -245,7 +247,7 @@ class Service extends Model
if (! $this->order_status)
return $this->active ? 'Active' : 'Inactive';
- return $this->order_status=='ORDER-SENT'
+ return in_array($this->order_status,['ORDER-SENT','ORDER-HOLD','ORDERED'])
? sprintf('%s: #%s',$this->order_status,array_get($this->order_info,'order_reference','Unknown'))
: $this->order_status;
}
diff --git a/resources/theme/backend/adminlte/a/service.blade.php b/resources/theme/backend/adminlte/a/service.blade.php
index fe850ef..5137c4b 100644
--- a/resources/theme/backend/adminlte/a/service.blade.php
+++ b/resources/theme/backend/adminlte/a/service.blade.php
@@ -29,6 +29,7 @@
@break
@case('ORDER-SENT')
+ @case('ORDERED')
@include('a.widgets.service.order.sent')
@break
@@ -52,6 +53,7 @@
@break;
@case('ORDER-SENT')
+ @case('ORDERED')
@break;
diff --git a/resources/theme/backend/adminlte/u/service.blade.php b/resources/theme/backend/adminlte/u/service.blade.php
index 7f9dac8..3f5cce0 100644
--- a/resources/theme/backend/adminlte/u/service.blade.php
+++ b/resources/theme/backend/adminlte/u/service.blade.php
@@ -24,6 +24,7 @@
@case('ORDER-SUBMIT')
@case('ORDER-SENT')
@case('ORDER-HOLD')
+ @case('ORDERED')
@include('u.widgets.service.order.sent')
@break