Telephone is now phone

This commit is contained in:
Deon George 2023-06-16 15:10:36 +10:00
parent 8f283f83f2
commit 27720ee882
7 changed files with 9 additions and 9 deletions

View File

@ -31,8 +31,8 @@ class ImportCosts extends Command
*/
public function handle()
{
if (! str_starts_with($this->argument('file'),'storage/app/'))
throw new \Exception('Filename must start with storage/app/');
if (! str_starts_with($this->argument('file'),'files/'))
throw new \Exception('Filename must start with files/');
Job::dispatchSync(
Site::findOrFail($this->argument('siteid')),

View File

@ -161,7 +161,7 @@ class ImportCosts implements ShouldQueue
break;
case 'telephone':
case 'phone':
$to = Cost\Phone::where('site_id',$this->co->site_id)
->where('cost_id',$this->co->id)
->where('service_phone_id',$so->type->id)
@ -192,7 +192,7 @@ class ImportCosts implements ShouldQueue
break;
default:
dump(['so'=>$so,'line'=>$line]);
dump(['so'=>$so,'category'=>$so->category,'line'=>$line,'m'=>$m,'r'=>$r]);
throw new \Exception(sprintf('ERROR: Service type not handled for service [%s] (%s) on line [%d]',$m[1],$so->category,$c));
}

View File

@ -43,7 +43,7 @@ class OrderRequestApprove extends Mailable
case 'broadband': $subject = sprintf('%s: %s',$this->service->category,$this->service->type->service_address);
break;
case 'telephone': $subject = sprintf('%s: %s',$this->service->category,$this->service->type->service_number);
case 'phone': $subject = sprintf('%s: %s',$this->service->category,$this->service->type->service_number);
break;
default:

View File

@ -12,7 +12,7 @@ Please order the following...
@case('broadband')
| Address | {{ $service->type->service_address }} |
@break;
@case('telephone')
@case('phone')
| Number | {{ $service->type->service_number }} |
| Supplier Details | {{ $service->order_info->join(':') }} |
@break;

View File

@ -13,7 +13,7 @@
@case('broadband')
| Address | {{ is_object($service->type) ? $service->type->service_address : 'Not Supplied' }} |
@break;
@case('telephone')
@case('phone')
| Address | {{ is_object($service->type) ? $service->type->service_address : 'Not Supplied' }} |
| Supplier Details | {{ join(':',$service->order_info) }} |
@break;

View File

@ -12,7 +12,7 @@ Please cancel the following...
@case('broadband')
| Address | {{ $service->type->service_address }} |
@break;
@case('telephone')
@case('phone')
| Number | {{ $service->type->service_number }} |
| Supplier Details | {{ $service->order_info->join(':') }} |
@break;

View File

@ -12,7 +12,7 @@ Please change the following...
@case('broadband')
| Address | {{ $service->type->service_address }} |
@break;
@case('telephone')
@case('phone')
| Number | {{ $service->type->service_number }} |
| Supplier Details | {{ $service->order_info->join(':') }} |
@break;