Rework service, removed redundant code, service invoicing improvements
This commit is contained in:
@@ -131,7 +131,7 @@ class ImportCosts implements ShouldQueue
|
||||
if ($so) {
|
||||
// r[1] = Monthly Charge or Extra Charge,r[2] = "On Plan", r[3] = Plan Info
|
||||
$r = [];
|
||||
switch ($so->category) {
|
||||
switch ($so->product->category) {
|
||||
case 'broadband':
|
||||
$to = Cost\Broadband::where('site_id',$this->co->site_id)
|
||||
->where('cost_id',$this->co->id)
|
||||
@@ -192,8 +192,8 @@ class ImportCosts implements ShouldQueue
|
||||
break;
|
||||
|
||||
default:
|
||||
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));
|
||||
dump(['so'=>$so,'category'=>$so->product->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->product->category,$c));
|
||||
}
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user