diff --git a/src/Entity/JobOrder.php b/src/Entity/JobOrder.php index bac98580..ce2f3a85 100644 --- a/src/Entity/JobOrder.php +++ b/src/Entity/JobOrder.php @@ -11,6 +11,7 @@ use DateTime; use App\Ramcar\ModeOfPayment; use App\Ramcar\JOStatus; +use App\Ramcar\ServiceType; /** * @ORM\Entity @@ -366,6 +367,11 @@ class JobOrder return $this->service_type; } + public function getServiceTypeName() + { + return ServiceType::getName($this->service_type); + } + public function setWarrantyClass($warranty_class) { $this->warranty_class = $warranty_class; @@ -455,6 +461,11 @@ class JobOrder return $this->status; } + public function getStatusText() + { + return JOStatus::getName($this->status); + } + public function setDeliveryInstructions($delivery_instructions) { $this->delivery_instructions = $delivery_instructions; diff --git a/templates/customer/form.html.twig b/templates/customer/form.html.twig index f1fa1853..c982b664 100644 --- a/templates/customer/form.html.twig +++ b/templates/customer/form.html.twig @@ -217,6 +217,23 @@ + +