Service display pricing, as a result of moving to psql. Service information updates

This commit is contained in:
2024-07-24 20:17:23 +10:00
parent 79237868cb
commit ddd44b643f
3 changed files with 15 additions and 19 deletions

View File

@@ -901,7 +901,9 @@ class Service extends Model implements IDs
*/
public function getStatusAttribute(): string
{
return $this->active ? $this->order_status : 'INACTIVE';
return $this->active
? strtolower($this->order_status)
: ((strtolower($this->order_status) === 'cancelled') ? 'cancelled' : 'inactive');
}
/**