Added logic for motor status update and validation for released quantity #1131
@@ -2668,6 +2668,7 @@ class ClassCharacteristicResource extends Resource
|
|||||||
$validRowsFound = false;
|
$validRowsFound = false;
|
||||||
$duplicateSerialNoInDb = [];
|
$duplicateSerialNoInDb = [];
|
||||||
$invalidMasterFound = [];
|
$invalidMasterFound = [];
|
||||||
|
$invalidRelQuan = [];
|
||||||
|
|
||||||
foreach ($rows as $index => $row) {
|
foreach ($rows as $index => $row) {
|
||||||
if ($index == 0) {
|
if ($index == 0) {
|
||||||
@@ -2757,6 +2758,11 @@ class ClassCharacteristicResource extends Resource
|
|||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if ((int)$releaseQuan > (int)$orderQuan) {
|
||||||
|
$invalidRelQuan[] = $releaseQuan;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($releaseQuan == '' || ! is_numeric($releaseQuan)) {
|
if ($releaseQuan == '' || ! is_numeric($releaseQuan)) {
|
||||||
$invalidReleaseQuantities[] = $releaseQuan;
|
$invalidReleaseQuantities[] = $releaseQuan;
|
||||||
|
|
||||||
@@ -2786,9 +2792,6 @@ class ClassCharacteristicResource extends Resource
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$uniqueInvalidCodes = array_unique($invalidItemCodes);
|
$uniqueInvalidCodes = array_unique($invalidItemCodes);
|
||||||
@@ -2817,6 +2820,8 @@ class ClassCharacteristicResource extends Resource
|
|||||||
|
|
||||||
$uniqueInvalidItemCharMast = array_unique($invalidMasterFound);
|
$uniqueInvalidItemCharMast = array_unique($invalidMasterFound);
|
||||||
|
|
||||||
|
$uniqueInvalidRelQuan = array_unique($invalidRelQuan);
|
||||||
|
|
||||||
|
|
||||||
if (! empty($uniqueInvalidPlaCodesMaster)) {
|
if (! empty($uniqueInvalidPlaCodesMaster)) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
@@ -2928,6 +2933,17 @@ class ClassCharacteristicResource extends Resource
|
|||||||
$disk->delete($path);
|
$disk->delete($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
|
} elseif (! empty($uniqueInvalidRelQuan)) {
|
||||||
|
Notification::make()
|
||||||
|
->title('Invalid Released Quantity')
|
||||||
|
->body('The following Released Quantity should not greater than the order quantity:<br>'.implode(', ', $uniqueInvalidRelQuan))
|
||||||
|
->danger()
|
||||||
|
->send();
|
||||||
|
if ($disk->exists($path)) {
|
||||||
|
$disk->delete($path);
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} elseif (! empty($uniqueMissingSerials)) {
|
} elseif (! empty($uniqueMissingSerials)) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
@@ -2975,8 +2991,6 @@ class ClassCharacteristicResource extends Resource
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ..Insert Logic
|
// ..Insert Logic
|
||||||
|
|
||||||
$insertedCount = 0;
|
$insertedCount = 0;
|
||||||
@@ -3001,6 +3015,14 @@ class ClassCharacteristicResource extends Resource
|
|||||||
|
|
||||||
$machine = Machine::where('plant_id', $plantId)->where('work_center', $workCenter)->first();
|
$machine = Machine::where('plant_id', $plantId)->where('work_center', $workCenter)->first();
|
||||||
|
|
||||||
|
$modelHeading = $itemCharacMaster->zmm_heading;
|
||||||
|
|
||||||
|
$updateModelTypeCount = null;
|
||||||
|
|
||||||
|
if (Str::contains($modelHeading, 'PRESSURE BOOSTER SYSTEM', ignoreCase: true) || Str::contains($modelHeading, 'PUMP SET', ignoreCase: true) || Str::contains($modelHeading, 'PUMPSET', ignoreCase: true) || Str::contains($modelHeading, 'PUMPS', ignoreCase: true)) {
|
||||||
|
$updateModelTypeCount = '3';
|
||||||
|
}
|
||||||
|
|
||||||
$record = ClassCharacteristic::create([
|
$record = ClassCharacteristic::create([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'item_id' => $item->id,
|
'item_id' => $item->id,
|
||||||
@@ -3009,8 +3031,143 @@ class ClassCharacteristicResource extends Resource
|
|||||||
'gamng' => $orderQuan,
|
'gamng' => $orderQuan,
|
||||||
'lmnga' => $releaseQuan,
|
'lmnga' => $releaseQuan,
|
||||||
'gernr' => $serialNumber,
|
'gernr' => $serialNumber,
|
||||||
|
'motor_pump_pumpset_status' => $updateModelTypeCount,
|
||||||
|
'marked_by' => $userName,
|
||||||
|
'marked_datetime' => now(),
|
||||||
'created_by' => $userName,
|
'created_by' => $userName,
|
||||||
'updated_by' => $userName,
|
'updated_by' => $userName,
|
||||||
|
'zz1_cn_bill_ord' => $itemCharacMaster->zz1_cn_bill_ord,
|
||||||
|
'zmm_amps' => $itemCharacMaster->zmm_amps,
|
||||||
|
'zmm_brand' => $itemCharacMaster->zmm_brand,
|
||||||
|
'zmm_degreeofprotection' => $itemCharacMaster->zmm_degreeofprotection,
|
||||||
|
'zmm_delivery' => $itemCharacMaster->zmm_delivery,
|
||||||
|
'zmm_dir_rot' => $itemCharacMaster->zmm_dir_rot,
|
||||||
|
'zmm_discharge' => $itemCharacMaster->zmm_discharge,
|
||||||
|
'zmm_discharge_max' => $itemCharacMaster->zmm_discharge_max,
|
||||||
|
'zmm_discharge_min' => $itemCharacMaster->zmm_discharge_min,
|
||||||
|
'zmm_duty' => $itemCharacMaster->zmm_duty,
|
||||||
|
'zmm_eff_motor' => $itemCharacMaster->zmm_eff_motor,
|
||||||
|
'zmm_eff_pump' => $itemCharacMaster->zmm_eff_pump,
|
||||||
|
'zmm_frequency' => $itemCharacMaster->zmm_frequency,
|
||||||
|
'zmm_head' => $itemCharacMaster->zmm_head,
|
||||||
|
'zmm_heading' => $itemCharacMaster->zmm_heading,
|
||||||
|
'zmm_head_max' => $itemCharacMaster->zmm_head_max,
|
||||||
|
'zmm_head_minimum' => $itemCharacMaster->zmm_head_minimum,
|
||||||
|
'zmm_idx_eff_mtr' => $itemCharacMaster->zmm_idx_eff_mtr,
|
||||||
|
'zmm_idx_eff_pump' => $itemCharacMaster->zmm_idx_eff_pump,
|
||||||
|
'zmm_kvacode' => $itemCharacMaster->zmm_kvacode,
|
||||||
|
'zmm_maxambtemp' => $itemCharacMaster->zmm_maxambtemp,
|
||||||
|
'zmm_mincoolingflow' => $itemCharacMaster->zmm_mincoolingflow,
|
||||||
|
'zmm_motorseries' => $itemCharacMaster->zmm_motorseries,
|
||||||
|
'zmm_motor_model' => $itemCharacMaster->zmm_motor_model,
|
||||||
|
'zmm_outlet' => $itemCharacMaster->zmm_outlet,
|
||||||
|
'zmm_phase' => $itemCharacMaster->zmm_phase,
|
||||||
|
'zmm_pressure' => $itemCharacMaster->zmm_pressure,
|
||||||
|
'zmm_pumpflowtype' => $itemCharacMaster->zmm_pumpflowtype,
|
||||||
|
'zmm_pumpseries' => $itemCharacMaster->zmm_pumpseries,
|
||||||
|
'zmm_pump_model' => $itemCharacMaster->zmm_pump_model,
|
||||||
|
'zmm_ratedpower' => $itemCharacMaster->zmm_ratedpower,
|
||||||
|
'zmm_region' => $itemCharacMaster->zmm_region,
|
||||||
|
'zmm_servicefactor' => $itemCharacMaster->zmm_servicefactor,
|
||||||
|
'zmm_servicefactormaximumamps' => $itemCharacMaster->zmm_servicefactormaximumamps,
|
||||||
|
'zmm_speed' => $itemCharacMaster->zmm_speed,
|
||||||
|
'zmm_suction' => $itemCharacMaster->zmm_suction,
|
||||||
|
'zmm_suctionxdelivery' => $itemCharacMaster->zmm_suctionxdelivery,
|
||||||
|
'zmm_supplysource' => $itemCharacMaster->zmm_supplysource,
|
||||||
|
'zmm_temperature' => $itemCharacMaster->zmm_temperature,
|
||||||
|
'zmm_thrustload' => $itemCharacMaster->zmm_thrustload,
|
||||||
|
'zmm_volts' => $itemCharacMaster->zmm_volts,
|
||||||
|
'zmm_wire' => $itemCharacMaster->zmm_wire,
|
||||||
|
'zmm_package' => $itemCharacMaster->zmm_package,
|
||||||
|
'zmm_pvarrayrating' => $itemCharacMaster->zmm_pvarrayrating,
|
||||||
|
'zmm_isi' => $itemCharacMaster->zmm_isi,
|
||||||
|
'zmm_isimotor' => $itemCharacMaster->zmm_isimotor,
|
||||||
|
'zmm_isipump' => $itemCharacMaster->zmm_isipump,
|
||||||
|
'zmm_isipumpset' => $itemCharacMaster->zmm_isipumpset,
|
||||||
|
'zmm_pumpset_model' => $itemCharacMaster->zmm_pumpset_model,
|
||||||
|
'zmm_stages' => $itemCharacMaster->zmm_stages,
|
||||||
|
'zmm_headrange' => $itemCharacMaster->zmm_headrange,
|
||||||
|
'zmm_overall_efficiency' => $itemCharacMaster->zmm_overall_efficiency,
|
||||||
|
'zmm_connection' => $itemCharacMaster->zmm_connection,
|
||||||
|
'zmm_min_bore_size' => $itemCharacMaster->zmm_min_bore_size,
|
||||||
|
'zmm_isireference' => $itemCharacMaster->zmm_isireference,
|
||||||
|
'zmm_category' => $itemCharacMaster->zmm_category,
|
||||||
|
'zmm_submergence' => $itemCharacMaster->zmm_submergence,
|
||||||
|
'zmm_capacitorstart' => $itemCharacMaster->zmm_capacitorstart,
|
||||||
|
'zmm_capacitorrun' => $itemCharacMaster->zmm_capacitorrun,
|
||||||
|
'zmm_inch' => $itemCharacMaster->zmm_inch,
|
||||||
|
'zmm_motor_type' => $itemCharacMaster->zmm_motor_type,
|
||||||
|
'zmm_dismantle_direction' => $itemCharacMaster->zmm_dismantle_direction,
|
||||||
|
'zmm_eff_ovrall' => $itemCharacMaster->zmm_eff_ovrall,
|
||||||
|
'zmm_bodymoc' => $itemCharacMaster->zmm_bodymoc,
|
||||||
|
'zmm_rotormoc' => $itemCharacMaster->zmm_rotormoc,
|
||||||
|
'zmm_dlwl' => $itemCharacMaster->zmm_dlwl,
|
||||||
|
'zmm_inputpower' => $itemCharacMaster->zmm_inputpower,
|
||||||
|
'zmm_imp_od' => $itemCharacMaster->zmm_imp_od,
|
||||||
|
'zmm_ambtemp' => $itemCharacMaster->zmm_ambtemp,
|
||||||
|
'zmm_de' => $itemCharacMaster->zmm_de,
|
||||||
|
'zmm_dischargerange' => $itemCharacMaster->zmm_dischargerange,
|
||||||
|
'zmm_efficiency_class' => $itemCharacMaster->zmm_efficiency_class,
|
||||||
|
'zmm_framesize' => $itemCharacMaster->zmm_framesize,
|
||||||
|
'zmm_impellerdiameter' => $itemCharacMaster->zmm_impellerdiameter,
|
||||||
|
'zmm_insulationclass' => $itemCharacMaster->zmm_insulationclass,
|
||||||
|
'zmm_maxflow' => $itemCharacMaster->zmm_maxflow,
|
||||||
|
'zmm_minhead' => $itemCharacMaster->zmm_minhead,
|
||||||
|
'zmm_mtrlofconst' => $itemCharacMaster->zmm_mtrlofconst,
|
||||||
|
'zmm_nde' => $itemCharacMaster->zmm_nde,
|
||||||
|
'zmm_powerfactor' => $itemCharacMaster->zmm_powerfactor,
|
||||||
|
'zmm_tagno' => $itemCharacMaster->zmm_tagno,
|
||||||
|
'zmm_year' => $itemCharacMaster->zmm_year,
|
||||||
|
'zmm_laser_name' => $itemCharacMaster->zmm_laser_name,
|
||||||
|
'zmm_logo_cp' => $itemCharacMaster->zmm_logo_cp,
|
||||||
|
'zmm_logo_ce' => $itemCharacMaster->zmm_logo_ce,
|
||||||
|
'zmm_logo_nsf' => $itemCharacMaster->zmm_logo_nsf,
|
||||||
|
'zmm_logo_eac' => $itemCharacMaster->zmm_logo_eac,
|
||||||
|
'zmm_beenote' => $itemCharacMaster->zmm_beenote,
|
||||||
|
'zmm_beenumber' => $itemCharacMaster->zmm_beenumber,
|
||||||
|
'zmm_beestar' => $itemCharacMaster->zmm_beestar,
|
||||||
|
'zmm_codeclass' => $itemCharacMaster->zmm_codeclass,
|
||||||
|
'zmm_colour' => $itemCharacMaster->zmm_colour,
|
||||||
|
'zmm_grade' => $itemCharacMaster->zmm_grade,
|
||||||
|
'zmm_grwt_pset' => $itemCharacMaster->zmm_grwt_pset,
|
||||||
|
'zmm_grwt_cable' => $itemCharacMaster->zmm_grwt_cable,
|
||||||
|
'zmm_grwt_motor' => $itemCharacMaster->zmm_grwt_motor,
|
||||||
|
'zmm_grwt_pf' => $itemCharacMaster->zmm_grwt_pf,
|
||||||
|
'zmm_grwt_pump' => $itemCharacMaster->zmm_grwt_pump,
|
||||||
|
'zmm_isivalve' => $itemCharacMaster->zmm_isivalve,
|
||||||
|
'zmm_isi_wc' => $itemCharacMaster->zmm_isi_wc,
|
||||||
|
'zmm_labelperiod' => $itemCharacMaster->zmm_labelperiod,
|
||||||
|
'zmm_length' => $itemCharacMaster->zmm_length,
|
||||||
|
'zmm_license_cml_no' => $itemCharacMaster->zmm_license_cml_no,
|
||||||
|
'zmm_mfgmonyr' => $itemCharacMaster->zmm_mfgmonyr,
|
||||||
|
'zmm_modelyear' => $itemCharacMaster->zmm_modelyear,
|
||||||
|
'zmm_motoridentification' => $itemCharacMaster->zmm_motoridentification,
|
||||||
|
'zmm_newt_pset' => $itemCharacMaster->zmm_newt_pset,
|
||||||
|
'zmm_newt_cable' => $itemCharacMaster->zmm_newt_cable,
|
||||||
|
'zmm_newt_motor' => $itemCharacMaster->zmm_newt_motor,
|
||||||
|
'zmm_newt_pf' => $itemCharacMaster->zmm_newt_pf,
|
||||||
|
'zmm_newt_pump' => $itemCharacMaster->zmm_newt_pump,
|
||||||
|
'zmm_packtype' => $itemCharacMaster->zmm_packtype,
|
||||||
|
'zmm_panel' => $itemCharacMaster->zmm_panel,
|
||||||
|
'zmm_performance_factor' => $itemCharacMaster->zmm_performance_factor,
|
||||||
|
'zmm_pumpidentification' => $itemCharacMaster->zmm_pumpidentification,
|
||||||
|
'zmm_psettype' => $itemCharacMaster->zmm_psettype,
|
||||||
|
'zmm_size' => $itemCharacMaster->zmm_size,
|
||||||
|
'zmm_eff_ttl' => $itemCharacMaster->zmm_eff_ttl,
|
||||||
|
'zmm_type' => $itemCharacMaster->zmm_type,
|
||||||
|
'zmm_usp' => $itemCharacMaster->zmm_usp,
|
||||||
|
'zmm_operating_range' => $itemCharacMaster->zmm_operating_range,
|
||||||
|
'zmm_intake_air' => $itemCharacMaster->zmm_intake_air,
|
||||||
|
'zmm_oxygen_transfer_rate' => $itemCharacMaster->zmm_oxygen_transfer_rate,
|
||||||
|
'zmm_air_inlet_pipesize' => $itemCharacMaster->zmm_air_inlet_pipesize,
|
||||||
|
'zmm_sump_depth' => $itemCharacMaster->zmm_sump_depth,
|
||||||
|
'zmm_poles' => $itemCharacMaster->zmm_poles,
|
||||||
|
'zmm_motor_heading' => $itemCharacMaster->zmm_motor_heading,
|
||||||
|
'zmm_motor_speed' => $itemCharacMaster->zmm_motor_speed,
|
||||||
|
'zqmm_qty' => $itemCharacMaster->zqmm_qty,
|
||||||
|
'zmm_operating_temperature' => $itemCharacMaster->zmm_operating_temperature,
|
||||||
|
'zmm_axial_force' => $itemCharacMaster->zmm_axial_force,
|
||||||
|
'zmm_mrp' => $itemCharacMaster->zmm_mrp,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($record) {
|
if ($record) {
|
||||||
@@ -3018,163 +3175,180 @@ class ClassCharacteristicResource extends Resource
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($record) {
|
if ($insertedCount == 0) {
|
||||||
|
Notification::make()
|
||||||
|
->title('Import Failed')
|
||||||
|
->body("{$insertedCount} records failed.")
|
||||||
|
->success();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else{
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Import Successful')
|
->title('Import Successful')
|
||||||
->body("{$insertedCount} records inserted successfully.")
|
->body("{$insertedCount} records inserted successfully.")
|
||||||
->success();
|
->success();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$itemCharacteristic = ItemCharacteristic::where('plant_id', $plantId)->where('item_id', $item->id)->first();
|
// $itemCharacteristic = ItemCharacteristic::where('plant_id', $plantId)->where('item_id', $item->id)->first();
|
||||||
|
|
||||||
if ($itemCharacteristic) {
|
// if ($itemCharacteristic) {
|
||||||
|
|
||||||
$classCharacteristics = ClassCharacteristic::where('plant_id', $itemCharacteristic->plant_id)
|
// $classCharacteristics = ClassCharacteristic::where('plant_id', $itemCharacteristic->plant_id)
|
||||||
->where('item_id', $itemCharacteristic->item_id)
|
// ->where('item_id', $itemCharacteristic->item_id)
|
||||||
->get();
|
// ->get();
|
||||||
|
|
||||||
$updatedCount = 0;
|
// $updatedCount = 0;
|
||||||
|
|
||||||
foreach ($classCharacteristics as $classCharacteristic) {
|
// foreach ($classCharacteristics as $classCharacteristic) {
|
||||||
|
|
||||||
$classCharacteristic->update([
|
// $classCharacteristic->update([
|
||||||
'zz1_cn_bill_ord' => $itemCharacteristic->zz1_cn_bill_ord,
|
// 'zz1_cn_bill_ord' => $itemCharacteristic->zz1_cn_bill_ord,
|
||||||
'zmm_amps' => $itemCharacteristic->zmm_amps,
|
// 'zmm_amps' => $itemCharacteristic->zmm_amps,
|
||||||
'zmm_brand' => $itemCharacteristic->zmm_brand,
|
// 'zmm_brand' => $itemCharacteristic->zmm_brand,
|
||||||
'zmm_degreeofprotection' => $itemCharacteristic->zmm_degreeofprotection,
|
// 'zmm_degreeofprotection' => $itemCharacteristic->zmm_degreeofprotection,
|
||||||
'zmm_delivery' => $itemCharacteristic->zmm_delivery,
|
// 'zmm_delivery' => $itemCharacteristic->zmm_delivery,
|
||||||
'zmm_dir_rot' => $itemCharacteristic->zmm_dir_rot,
|
// 'zmm_dir_rot' => $itemCharacteristic->zmm_dir_rot,
|
||||||
'zmm_discharge' => $itemCharacteristic->zmm_discharge,
|
// 'zmm_discharge' => $itemCharacteristic->zmm_discharge,
|
||||||
'zmm_discharge_max' => $itemCharacteristic->zmm_discharge_max,
|
// 'zmm_discharge_max' => $itemCharacteristic->zmm_discharge_max,
|
||||||
'zmm_discharge_min' => $itemCharacteristic->zmm_discharge_min,
|
// 'zmm_discharge_min' => $itemCharacteristic->zmm_discharge_min,
|
||||||
'zmm_duty' => $itemCharacteristic->zmm_duty,
|
// 'zmm_duty' => $itemCharacteristic->zmm_duty,
|
||||||
'zmm_eff_motor' => $itemCharacteristic->zmm_eff_motor,
|
// 'zmm_eff_motor' => $itemCharacteristic->zmm_eff_motor,
|
||||||
'zmm_eff_pump' => $itemCharacteristic->zmm_eff_pump,
|
// 'zmm_eff_pump' => $itemCharacteristic->zmm_eff_pump,
|
||||||
'zmm_frequency' => $itemCharacteristic->zmm_frequency,
|
// 'zmm_frequency' => $itemCharacteristic->zmm_frequency,
|
||||||
'zmm_head' => $itemCharacteristic->zmm_head,
|
// 'zmm_head' => $itemCharacteristic->zmm_head,
|
||||||
'zmm_heading' => $itemCharacteristic->zmm_heading,
|
// 'zmm_heading' => $itemCharacteristic->zmm_heading,
|
||||||
'zmm_head_max' => $itemCharacteristic->zmm_head_max,
|
// 'zmm_head_max' => $itemCharacteristic->zmm_head_max,
|
||||||
'zmm_head_minimum' => $itemCharacteristic->zmm_head_minimum,
|
// 'zmm_head_minimum' => $itemCharacteristic->zmm_head_minimum,
|
||||||
'zmm_idx_eff_mtr' => $itemCharacteristic->zmm_idx_eff_mtr,
|
// 'zmm_idx_eff_mtr' => $itemCharacteristic->zmm_idx_eff_mtr,
|
||||||
'zmm_idx_eff_pump' => $itemCharacteristic->zmm_idx_eff_pump,
|
// 'zmm_idx_eff_pump' => $itemCharacteristic->zmm_idx_eff_pump,
|
||||||
'zmm_kvacode' => $itemCharacteristic->zmm_kvacode,
|
// 'zmm_kvacode' => $itemCharacteristic->zmm_kvacode,
|
||||||
'zmm_maxambtemp' => $itemCharacteristic->zmm_maxambtemp,
|
// 'zmm_maxambtemp' => $itemCharacteristic->zmm_maxambtemp,
|
||||||
'zmm_mincoolingflow' => $itemCharacteristic->zmm_mincoolingflow,
|
// 'zmm_mincoolingflow' => $itemCharacteristic->zmm_mincoolingflow,
|
||||||
'zmm_motorseries' => $itemCharacteristic->zmm_motorseries,
|
// 'zmm_motorseries' => $itemCharacteristic->zmm_motorseries,
|
||||||
'zmm_motor_model' => $itemCharacteristic->zmm_motor_model,
|
// 'zmm_motor_model' => $itemCharacteristic->zmm_motor_model,
|
||||||
'zmm_outlet' => $itemCharacteristic->zmm_outlet,
|
// 'zmm_outlet' => $itemCharacteristic->zmm_outlet,
|
||||||
'zmm_phase' => $itemCharacteristic->zmm_phase,
|
// 'zmm_phase' => $itemCharacteristic->zmm_phase,
|
||||||
'zmm_pressure' => $itemCharacteristic->zmm_pressure,
|
// 'zmm_pressure' => $itemCharacteristic->zmm_pressure,
|
||||||
'zmm_pumpflowtype' => $itemCharacteristic->zmm_pumpflowtype,
|
// 'zmm_pumpflowtype' => $itemCharacteristic->zmm_pumpflowtype,
|
||||||
'zmm_pumpseries' => $itemCharacteristic->zmm_pumpseries,
|
// 'zmm_pumpseries' => $itemCharacteristic->zmm_pumpseries,
|
||||||
'zmm_pump_model' => $itemCharacteristic->zmm_pump_model,
|
// 'zmm_pump_model' => $itemCharacteristic->zmm_pump_model,
|
||||||
'zmm_ratedpower' => $itemCharacteristic->zmm_ratedpower,
|
// 'zmm_ratedpower' => $itemCharacteristic->zmm_ratedpower,
|
||||||
'zmm_region' => $itemCharacteristic->zmm_region,
|
// 'zmm_region' => $itemCharacteristic->zmm_region,
|
||||||
'zmm_servicefactor' => $itemCharacteristic->zmm_servicefactor,
|
// 'zmm_servicefactor' => $itemCharacteristic->zmm_servicefactor,
|
||||||
'zmm_servicefactormaximumamps' => $itemCharacteristic->zmm_servicefactormaximumamps,
|
// 'zmm_servicefactormaximumamps' => $itemCharacteristic->zmm_servicefactormaximumamps,
|
||||||
'zmm_speed' => $itemCharacteristic->zmm_speed,
|
// 'zmm_speed' => $itemCharacteristic->zmm_speed,
|
||||||
'zmm_suction' => $itemCharacteristic->zmm_suction,
|
// 'zmm_suction' => $itemCharacteristic->zmm_suction,
|
||||||
'zmm_suctionxdelivery' => $itemCharacteristic->zmm_suctionxdelivery,
|
// 'zmm_suctionxdelivery' => $itemCharacteristic->zmm_suctionxdelivery,
|
||||||
'zmm_supplysource' => $itemCharacteristic->zmm_supplysource,
|
// 'zmm_supplysource' => $itemCharacteristic->zmm_supplysource,
|
||||||
'zmm_temperature' => $itemCharacteristic->zmm_temperature,
|
// 'zmm_temperature' => $itemCharacteristic->zmm_temperature,
|
||||||
'zmm_thrustload' => $itemCharacteristic->zmm_thrustload,
|
// 'zmm_thrustload' => $itemCharacteristic->zmm_thrustload,
|
||||||
'zmm_volts' => $itemCharacteristic->zmm_volts,
|
// 'zmm_volts' => $itemCharacteristic->zmm_volts,
|
||||||
'zmm_wire' => $itemCharacteristic->zmm_wire,
|
// 'zmm_wire' => $itemCharacteristic->zmm_wire,
|
||||||
'zmm_package' => $itemCharacteristic->zmm_package,
|
// 'zmm_package' => $itemCharacteristic->zmm_package,
|
||||||
'zmm_pvarrayrating' => $itemCharacteristic->zmm_pvarrayrating,
|
// 'zmm_pvarrayrating' => $itemCharacteristic->zmm_pvarrayrating,
|
||||||
'zmm_isi' => $itemCharacteristic->zmm_isi,
|
// 'zmm_isi' => $itemCharacteristic->zmm_isi,
|
||||||
'zmm_isimotor' => $itemCharacteristic->zmm_isimotor,
|
// 'zmm_isimotor' => $itemCharacteristic->zmm_isimotor,
|
||||||
'zmm_isipump' => $itemCharacteristic->zmm_isipump,
|
// 'zmm_isipump' => $itemCharacteristic->zmm_isipump,
|
||||||
'zmm_isipumpset' => $itemCharacteristic->zmm_isipumpset,
|
// 'zmm_isipumpset' => $itemCharacteristic->zmm_isipumpset,
|
||||||
'zmm_pumpset_model' => $itemCharacteristic->zmm_pumpset_model,
|
// 'zmm_pumpset_model' => $itemCharacteristic->zmm_pumpset_model,
|
||||||
'zmm_stages' => $itemCharacteristic->zmm_stages,
|
// 'zmm_stages' => $itemCharacteristic->zmm_stages,
|
||||||
'zmm_headrange' => $itemCharacteristic->zmm_headrange,
|
// 'zmm_headrange' => $itemCharacteristic->zmm_headrange,
|
||||||
'zmm_overall_efficiency' => $itemCharacteristic->zmm_overall_efficiency,
|
// 'zmm_overall_efficiency' => $itemCharacteristic->zmm_overall_efficiency,
|
||||||
'zmm_connection' => $itemCharacteristic->zmm_connection,
|
// 'zmm_connection' => $itemCharacteristic->zmm_connection,
|
||||||
'zmm_min_bore_size' => $itemCharacteristic->zmm_min_bore_size,
|
// 'zmm_min_bore_size' => $itemCharacteristic->zmm_min_bore_size,
|
||||||
'zmm_isireference' => $itemCharacteristic->zmm_isireference,
|
// 'zmm_isireference' => $itemCharacteristic->zmm_isireference,
|
||||||
'zmm_category' => $itemCharacteristic->zmm_category,
|
// 'zmm_category' => $itemCharacteristic->zmm_category,
|
||||||
'zmm_submergence' => $itemCharacteristic->zmm_submergence,
|
// 'zmm_submergence' => $itemCharacteristic->zmm_submergence,
|
||||||
'zmm_capacitorstart' => $itemCharacteristic->zmm_capacitorstart,
|
// 'zmm_capacitorstart' => $itemCharacteristic->zmm_capacitorstart,
|
||||||
'zmm_capacitorrun' => $itemCharacteristic->zmm_capacitorrun,
|
// 'zmm_capacitorrun' => $itemCharacteristic->zmm_capacitorrun,
|
||||||
'zmm_inch' => $itemCharacteristic->zmm_inch,
|
// 'zmm_inch' => $itemCharacteristic->zmm_inch,
|
||||||
'zmm_motor_type' => $itemCharacteristic->zmm_motor_type,
|
// 'zmm_motor_type' => $itemCharacteristic->zmm_motor_type,
|
||||||
'zmm_dismantle_direction' => $itemCharacteristic->zmm_dismantle_direction,
|
// 'zmm_dismantle_direction' => $itemCharacteristic->zmm_dismantle_direction,
|
||||||
'zmm_eff_ovrall' => $itemCharacteristic->zmm_eff_ovrall,
|
// 'zmm_eff_ovrall' => $itemCharacteristic->zmm_eff_ovrall,
|
||||||
'zmm_bodymoc' => $itemCharacteristic->zmm_bodymoc,
|
// 'zmm_bodymoc' => $itemCharacteristic->zmm_bodymoc,
|
||||||
'zmm_rotormoc' => $itemCharacteristic->zmm_rotormoc,
|
// 'zmm_rotormoc' => $itemCharacteristic->zmm_rotormoc,
|
||||||
'zmm_dlwl' => $itemCharacteristic->zmm_dlwl,
|
// 'zmm_dlwl' => $itemCharacteristic->zmm_dlwl,
|
||||||
'zmm_inputpower' => $itemCharacteristic->zmm_inputpower,
|
// 'zmm_inputpower' => $itemCharacteristic->zmm_inputpower,
|
||||||
'zmm_imp_od' => $itemCharacteristic->zmm_imp_od,
|
// 'zmm_imp_od' => $itemCharacteristic->zmm_imp_od,
|
||||||
'zmm_ambtemp' => $itemCharacteristic->zmm_ambtemp,
|
// 'zmm_ambtemp' => $itemCharacteristic->zmm_ambtemp,
|
||||||
'zmm_de' => $itemCharacteristic->zmm_de,
|
// 'zmm_de' => $itemCharacteristic->zmm_de,
|
||||||
'zmm_dischargerange' => $itemCharacteristic->zmm_dischargerange,
|
// 'zmm_dischargerange' => $itemCharacteristic->zmm_dischargerange,
|
||||||
'zmm_efficiency_class' => $itemCharacteristic->zmm_efficiency_class,
|
// 'zmm_efficiency_class' => $itemCharacteristic->zmm_efficiency_class,
|
||||||
'zmm_framesize' => $itemCharacteristic->zmm_framesize,
|
// 'zmm_framesize' => $itemCharacteristic->zmm_framesize,
|
||||||
'zmm_impellerdiameter' => $itemCharacteristic->zmm_impellerdiameter,
|
// 'zmm_impellerdiameter' => $itemCharacteristic->zmm_impellerdiameter,
|
||||||
'zmm_insulationclass' => $itemCharacteristic->zmm_insulationclass,
|
// 'zmm_insulationclass' => $itemCharacteristic->zmm_insulationclass,
|
||||||
'zmm_maxflow' => $itemCharacteristic->zmm_maxflow,
|
// 'zmm_maxflow' => $itemCharacteristic->zmm_maxflow,
|
||||||
'zmm_minhead' => $itemCharacteristic->zmm_minhead,
|
// 'zmm_minhead' => $itemCharacteristic->zmm_minhead,
|
||||||
'zmm_mtrlofconst' => $itemCharacteristic->zmm_mtrlofconst,
|
// 'zmm_mtrlofconst' => $itemCharacteristic->zmm_mtrlofconst,
|
||||||
'zmm_nde' => $itemCharacteristic->zmm_nde,
|
// 'zmm_nde' => $itemCharacteristic->zmm_nde,
|
||||||
'zmm_powerfactor' => $itemCharacteristic->zmm_powerfactor,
|
// 'zmm_powerfactor' => $itemCharacteristic->zmm_powerfactor,
|
||||||
'zmm_tagno' => $itemCharacteristic->zmm_tagno,
|
// 'zmm_tagno' => $itemCharacteristic->zmm_tagno,
|
||||||
'zmm_year' => $itemCharacteristic->zmm_year,
|
// 'zmm_year' => $itemCharacteristic->zmm_year,
|
||||||
'zmm_laser_name' => $itemCharacteristic->zmm_laser_name,
|
// 'zmm_laser_name' => $itemCharacteristic->zmm_laser_name,
|
||||||
'zmm_logo_cp' => $itemCharacteristic->zmm_logo_cp,
|
// 'zmm_logo_cp' => $itemCharacteristic->zmm_logo_cp,
|
||||||
'zmm_logo_ce' => $itemCharacteristic->zmm_logo_ce,
|
// 'zmm_logo_ce' => $itemCharacteristic->zmm_logo_ce,
|
||||||
'zmm_logo_nsf' => $itemCharacteristic->zmm_logo_nsf,
|
// 'zmm_logo_nsf' => $itemCharacteristic->zmm_logo_nsf,
|
||||||
'zmm_logo_eac' => $itemCharacteristic->zmm_logo_eac,
|
// 'zmm_logo_eac' => $itemCharacteristic->zmm_logo_eac,
|
||||||
'zmm_beenote' => $itemCharacteristic->zmm_beenote,
|
// 'zmm_beenote' => $itemCharacteristic->zmm_beenote,
|
||||||
'zmm_beenumber' => $itemCharacteristic->zmm_beenumber,
|
// 'zmm_beenumber' => $itemCharacteristic->zmm_beenumber,
|
||||||
'zmm_beestar' => $itemCharacteristic->zmm_beestar,
|
// 'zmm_beestar' => $itemCharacteristic->zmm_beestar,
|
||||||
'zmm_codeclass' => $itemCharacteristic->zmm_codeclass,
|
// 'zmm_codeclass' => $itemCharacteristic->zmm_codeclass,
|
||||||
'zmm_colour' => $itemCharacteristic->zmm_colour,
|
// 'zmm_colour' => $itemCharacteristic->zmm_colour,
|
||||||
'zmm_grade' => $itemCharacteristic->zmm_grade,
|
// 'zmm_grade' => $itemCharacteristic->zmm_grade,
|
||||||
'zmm_grwt_pset' => $itemCharacteristic->zmm_grwt_pset,
|
// 'zmm_grwt_pset' => $itemCharacteristic->zmm_grwt_pset,
|
||||||
'zmm_grwt_cable' => $itemCharacteristic->zmm_grwt_cable,
|
// 'zmm_grwt_cable' => $itemCharacteristic->zmm_grwt_cable,
|
||||||
'zmm_grwt_motor' => $itemCharacteristic->zmm_grwt_motor,
|
// 'zmm_grwt_motor' => $itemCharacteristic->zmm_grwt_motor,
|
||||||
'zmm_grwt_pf' => $itemCharacteristic->zmm_grwt_pf,
|
// 'zmm_grwt_pf' => $itemCharacteristic->zmm_grwt_pf,
|
||||||
'zmm_grwt_pump' => $itemCharacteristic->zmm_grwt_pump,
|
// 'zmm_grwt_pump' => $itemCharacteristic->zmm_grwt_pump,
|
||||||
'zmm_isivalve' => $itemCharacteristic->zmm_isivalve,
|
// 'zmm_isivalve' => $itemCharacteristic->zmm_isivalve,
|
||||||
'zmm_isi_wc' => $itemCharacteristic->zmm_isi_wc,
|
// 'zmm_isi_wc' => $itemCharacteristic->zmm_isi_wc,
|
||||||
'zmm_labelperiod' => $itemCharacteristic->zmm_labelperiod,
|
// 'zmm_labelperiod' => $itemCharacteristic->zmm_labelperiod,
|
||||||
'zmm_length' => $itemCharacteristic->zmm_length,
|
// 'zmm_length' => $itemCharacteristic->zmm_length,
|
||||||
'zmm_license_cml_no' => $itemCharacteristic->zmm_license_cml_no,
|
// 'zmm_license_cml_no' => $itemCharacteristic->zmm_license_cml_no,
|
||||||
'zmm_mfgmonyr' => $itemCharacteristic->zmm_mfgmonyr,
|
// 'zmm_mfgmonyr' => $itemCharacteristic->zmm_mfgmonyr,
|
||||||
'zmm_modelyear' => $itemCharacteristic->zmm_modelyear,
|
// 'zmm_modelyear' => $itemCharacteristic->zmm_modelyear,
|
||||||
'zmm_motoridentification' => $itemCharacteristic->zmm_motoridentification,
|
// 'zmm_motoridentification' => $itemCharacteristic->zmm_motoridentification,
|
||||||
'zmm_newt_pset' => $itemCharacteristic->zmm_newt_pset,
|
// 'zmm_newt_pset' => $itemCharacteristic->zmm_newt_pset,
|
||||||
'zmm_newt_cable' => $itemCharacteristic->zmm_newt_cable,
|
// 'zmm_newt_cable' => $itemCharacteristic->zmm_newt_cable,
|
||||||
'zmm_newt_motor' => $itemCharacteristic->zmm_newt_motor,
|
// 'zmm_newt_motor' => $itemCharacteristic->zmm_newt_motor,
|
||||||
'zmm_newt_pf' => $itemCharacteristic->zmm_newt_pf,
|
// 'zmm_newt_pf' => $itemCharacteristic->zmm_newt_pf,
|
||||||
'zmm_newt_pump' => $itemCharacteristic->zmm_newt_pump,
|
// 'zmm_newt_pump' => $itemCharacteristic->zmm_newt_pump,
|
||||||
'zmm_packtype' => $itemCharacteristic->zmm_packtype,
|
// 'zmm_packtype' => $itemCharacteristic->zmm_packtype,
|
||||||
'zmm_panel' => $itemCharacteristic->zmm_panel,
|
// 'zmm_panel' => $itemCharacteristic->zmm_panel,
|
||||||
'zmm_performance_factor' => $itemCharacteristic->zmm_performance_factor,
|
// 'zmm_performance_factor' => $itemCharacteristic->zmm_performance_factor,
|
||||||
'zmm_pumpidentification' => $itemCharacteristic->zmm_pumpidentification,
|
// 'zmm_pumpidentification' => $itemCharacteristic->zmm_pumpidentification,
|
||||||
'zmm_psettype' => $itemCharacteristic->zmm_psettype,
|
// 'zmm_psettype' => $itemCharacteristic->zmm_psettype,
|
||||||
'zmm_size' => $itemCharacteristic->zmm_size,
|
// 'zmm_size' => $itemCharacteristic->zmm_size,
|
||||||
'zmm_eff_ttl' => $itemCharacteristic->zmm_eff_ttl,
|
// 'zmm_eff_ttl' => $itemCharacteristic->zmm_eff_ttl,
|
||||||
'zmm_type' => $itemCharacteristic->zmm_type,
|
// 'zmm_type' => $itemCharacteristic->zmm_type,
|
||||||
'zmm_usp' => $itemCharacteristic->zmm_usp,
|
// 'zmm_usp' => $itemCharacteristic->zmm_usp,
|
||||||
'zmm_operating_range' => $itemCharacteristic->zmm_operating_range,
|
// 'zmm_operating_range' => $itemCharacteristic->zmm_operating_range,
|
||||||
'zmm_intake_air' => $itemCharacteristic->zmm_intake_air,
|
// 'zmm_intake_air' => $itemCharacteristic->zmm_intake_air,
|
||||||
'zmm_oxygen_transfer_rate' => $itemCharacteristic->zmm_oxygen_transfer_rate,
|
// 'zmm_oxygen_transfer_rate' => $itemCharacteristic->zmm_oxygen_transfer_rate,
|
||||||
'zmm_air_inlet_pipesize' => $itemCharacteristic->zmm_air_inlet_pipesize,
|
// 'zmm_air_inlet_pipesize' => $itemCharacteristic->zmm_air_inlet_pipesize,
|
||||||
'zmm_sump_depth' => $itemCharacteristic->zmm_sump_depth,
|
// 'zmm_sump_depth' => $itemCharacteristic->zmm_sump_depth,
|
||||||
'zmm_poles' => $itemCharacteristic->zmm_poles,
|
// 'zmm_poles' => $itemCharacteristic->zmm_poles,
|
||||||
'zmm_motor_heading' => $itemCharacteristic->zmm_motor_heading,
|
// 'zmm_motor_heading' => $itemCharacteristic->zmm_motor_heading,
|
||||||
'zmm_motor_speed' => $itemCharacteristic->zmm_motor_speed,
|
// 'zmm_motor_speed' => $itemCharacteristic->zmm_motor_speed,
|
||||||
'zqmm_qty' => $itemCharacteristic->zqmm_qty,
|
// 'zqmm_qty' => $itemCharacteristic->zqmm_qty,
|
||||||
'zmm_operating_temperature' => $itemCharacteristic->zmm_operating_temperature,
|
// 'zmm_operating_temperature' => $itemCharacteristic->zmm_operating_temperature,
|
||||||
'zmm_axial_force' => $itemCharacteristic->zmm_axial_force,
|
// 'zmm_axial_force' => $itemCharacteristic->zmm_axial_force,
|
||||||
'zmm_mrp' => $itemCharacteristic->zmm_mrp,
|
// 'zmm_mrp' => $itemCharacteristic->zmm_mrp,
|
||||||
]);
|
// ]);
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
// $updatedCount++;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if ($record) {
|
||||||
|
// Notification::make()
|
||||||
|
// ->title('Import Successful')
|
||||||
|
// ->body("{$insertedCount} records inserted successfully.")
|
||||||
|
// ->success();
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
$updatedCount++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
->visible(function () {
|
->visible(function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user