Improvements for service_change and service_cancel
This commit is contained in:
@@ -15,15 +15,15 @@ class CancelRequest extends Mailable
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public Service $service;
|
||||
public string $notes;
|
||||
public ?string $notes;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @param Service $o
|
||||
* @param string $notes
|
||||
* @param string|NULL $notes
|
||||
*/
|
||||
public function __construct(Service $o,string $notes='')
|
||||
public function __construct(Service $o,string $notes=NULL)
|
||||
{
|
||||
$this->service = $o;
|
||||
$this->notes = $notes;
|
||||
@@ -40,7 +40,9 @@ class CancelRequest extends Mailable
|
||||
|
||||
switch (get_class($this->service->type)) {
|
||||
case Service\Broadband::class:
|
||||
$subject = sprintf('Cancel BROADBAND: %s',$this->service->type->service_address);
|
||||
$subject = sprintf('Cancel BROADBAND: %s (%s)',
|
||||
$this->service->type->service_number,
|
||||
$this->service->type->service_address);
|
||||
break;
|
||||
|
||||
case Service\Phone::class:
|
||||
|
@@ -15,18 +15,18 @@ class ChangeRequest extends Mailable
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public Service $service;
|
||||
public string $notes;
|
||||
public ?string $notes;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @param Service $o
|
||||
* @param string $notes
|
||||
* @param string|NULL $notes
|
||||
*/
|
||||
public function __construct(Service $o,string $notes='')
|
||||
public function __construct(Service $o,string $notes=NULL)
|
||||
{
|
||||
$this->service = $o;
|
||||
$this->notes = $notes ?? '';
|
||||
$this->notes = $notes;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -40,7 +40,9 @@ class ChangeRequest extends Mailable
|
||||
|
||||
switch (get_class($this->service->type)) {
|
||||
case Service\Broadband::class:
|
||||
$subject = sprintf('Change BROADBAND: %s',$this->service->type->service_address);
|
||||
$subject = sprintf('Change BROADBAND: %s (%s)',
|
||||
$this->service->type->service_number,
|
||||
$this->service->type->service_address);
|
||||
break;
|
||||
|
||||
case Service\Phone::class:
|
||||
|
Reference in New Issue
Block a user