Telephone is now phone

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

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));
}