diff --git a/app/Filament/Resources/ClassCharacteristicResource.php b/app/Filament/Resources/ClassCharacteristicResource.php index 04ddd575..993185f0 100644 --- a/app/Filament/Resources/ClassCharacteristicResource.php +++ b/app/Filament/Resources/ClassCharacteristicResource.php @@ -2727,6 +2727,48 @@ class ClassCharacteristicResource extends Resource TextInput::make('zmm_heading') ->label('Heading') ->placeholder('Enter Heading'), + Select::make('motor_machine_name') + ->label('Search by Motor Machine') + ->nullable() + ->searchable() + ->reactive() + ->options(function (callable $get) { + $plantId = $get('Plant'); + + if (empty($plantId)) { + return []; + } + + return ClassCharacteristic::whereNotNull('motor_machine_name')->where('motor_machine_name', '!=', '')->pluck('motor_machine_name', 'motor_machine_name'); + }), + Select::make('pump_machine_name') + ->label('Search by Pump Machine') + ->nullable() + ->searchable() + ->reactive() + ->options(function (callable $get) { + $plantId = $get('Plant'); + + if (empty($plantId)) { + return []; + } + + return ClassCharacteristic::whereNotNull('pump_machine_name')->where('pump_machine_name', '!=', '')->pluck('pump_machine_name', 'pump_machine_name'); + }), + Select::make('name_plate_machine_name') + ->label('Search by Name Plate Machine') + ->nullable() + ->searchable() + ->reactive() + ->options(function (callable $get) { + $plantId = $get('Plant'); + + if (empty($plantId)) { + return []; + } + + return ClassCharacteristic::whereNotNull('name_plate_machine_name')->where('name_plate_machine_name', '!=', '')->pluck('name_plate_machine_name', 'name_plate_machine_name'); + }), DateTimePicker::make('motor_marked_from') ->label('Motor Marked From') ->placeholder('Select From DateTime') @@ -2796,7 +2838,7 @@ class ClassCharacteristicResource extends Resource ]) ->query(function ($query, array $data) { // Hide all records initially if no filters are applied - if (empty($data['Plant']) && empty($data['machine']) && empty($data['item_id']) && empty($data['aufnr']) && empty($data['gernr']) && empty($data['winded_serial_number']) && empty($data['zmm_heading']) && empty($data['motor_marked_from']) && empty($data['motor_marked_to']) && empty($data['pump_marked_from']) && empty($data['pump_marked_to']) && empty($data['name_plate_marked_from']) && empty($data['name_plate_marked_to']) && empty($data['created_from']) && empty($data['created_to']) && empty($data['created_by']) && empty($data['updated_from']) && empty($data['updated_to']) && empty($data['updated_by'])) { + if (empty($data['Plant']) && empty($data['machine']) && empty($data['item_id']) && empty($data['aufnr']) && empty($data['gernr']) && empty($data['winded_serial_number']) && empty($data['zmm_heading']) && empty($data['motor_machine_name']) && empty($data['pump_machine_name']) && empty($data['name_plate_machine_name']) && empty($data['motor_marked_from']) && empty($data['motor_marked_to']) && empty($data['pump_marked_from']) && empty($data['pump_marked_to']) && empty($data['name_plate_marked_from']) && empty($data['name_plate_marked_to']) && empty($data['created_from']) && empty($data['created_to']) && empty($data['created_by']) && empty($data['updated_from']) && empty($data['updated_to']) && empty($data['updated_by'])) { return $query->whereRaw('1 = 0'); } @@ -2834,6 +2876,18 @@ class ClassCharacteristicResource extends Resource $query->where('zmm_heading', 'like', '%'.$data['zmm_heading'].'%'); } + if (! empty($data['motor_machine_name'])) { + $query->where('motor_machine_name', $data['motor_machine_name']); + } + + if (! empty($data['pump_machine_name'])) { + $query->where('pump_machine_name', $data['pump_machine_name']); + } + + if (! empty($data['name_plate_machine_name'])) { + $query->where('name_plate_machine_name', $data['name_plate_machine_name']); + } + if (! empty($data['motor_marked_from'])) { $query->where('motor_marked_datetime', '>=', $data['motor_marked_from']); } @@ -2919,6 +2973,18 @@ class ClassCharacteristicResource extends Resource $indicators[] = 'Heading: '.$data['zmm_heading']; } + if (! empty($data['motor_machine_name'])) { + $indicators[] = 'Motor Machine Name: '.$data['motor_machine_name']; + } + + if (! empty($data['pump_machine_name'])) { + $indicators[] = 'Pump Machine Name: '.$data['pump_machine_name']; + } + + if (! empty($data['name_plate_machine_name'])) { + $indicators[] = 'Name Plate Machine Name: '.$data['name_plate_machine_name']; + } + if (! empty($data['motor_marked_from'])) { $indicators[] = 'Motor Marked From: '.$data['motor_marked_from']; } @@ -3032,7 +3098,7 @@ class ClassCharacteristicResource extends Resource ->toArray(); }), TextInput::make('machine_id') - ->label('Machine') + ->label('Work Center') ->reactive() ->required(), TextInput::make('production_order') @@ -3759,158 +3825,158 @@ class ClassCharacteristicResource extends Resource // $record = ClassCharacteristic::create([ $record = ClassCharacteristic::updateOrCreate( - [ - 'plant_id' => $plantId, - 'gernr' => $serialNumber, - ], - [ - // 'plant_id' => $plantId, - 'item_id' => $item->id, - 'machine_id' => $machine->id, - 'aufnr' => $pOrder, - 'gamng' => $orderQuan.'.000', - 'lmnga' => $releaseQuan, - // 'gernr' => $serialNumber, - 'motor_pump_pumpset_status' => $updateModelTypeCount, - 'marked_by' => $userName, - 'marked_datetime' => now(), - 'created_by' => $userName, - 'updated_by' => $userName, - 'class' => $itemCharacMaster->class, - 'arbid' => $itemCharacMaster->arbid, - '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, - ]); + [ + 'plant_id' => $plantId, + 'gernr' => $serialNumber, + ], + [ + // 'plant_id' => $plantId, + 'item_id' => $item->id, + 'machine_id' => $machine->id, + 'aufnr' => $pOrder, + 'gamng' => $orderQuan.'.000', + 'lmnga' => $releaseQuan, + // 'gernr' => $serialNumber, + 'motor_pump_pumpset_status' => $updateModelTypeCount, + 'marked_by' => $userName, + 'marked_datetime' => now(), + 'created_by' => $userName, + 'updated_by' => $userName, + 'class' => $itemCharacMaster->class, + 'arbid' => $itemCharacMaster->arbid, + '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) { $insertedCount++;