Update supplier/cost with components
This commit is contained in:
@@ -126,7 +126,7 @@ class ImportCosts implements ShouldQueue
|
||||
$cost = ($x=$this->getColumnKey('PRICETOTAL')) ? str_replace([',','$'],'',$fields[$x]) : NULL;
|
||||
$start_at = Carbon::createFromFormat('d M Y',$m[3]);
|
||||
$stop_at = Carbon::createFromFormat('d M Y',$m[4]);
|
||||
$so = Service::search($m[1])->active()->with(['type','product.type.supplied'])->single();
|
||||
$so = Service::search($m[1])->ServiceActive()->with(['type','product.type.supplied'])->single();
|
||||
|
||||
if ($so) {
|
||||
// r[1] = Monthly Charge or Extra Charge,r[2] = "On Plan", r[3] = Plan Info
|
||||
@@ -197,7 +197,7 @@ class ImportCosts implements ShouldQueue
|
||||
}
|
||||
|
||||
} else {
|
||||
dump(['line'=>$line,'sql'=>Service::search($m[1])->active()->with(['type','product.type.supplied'])->toSql()]);
|
||||
dump(['line'=>$line,'sql'=>Service::search($m[1])->ServiceActive()->with(['type','product.type.supplied'])->toSql()]);
|
||||
|
||||
$to = Cost\Generic::where('site_id',$this->co->site_id)
|
||||
->where('cost_id',$this->co->id)
|
||||
|
Reference in New Issue
Block a user