Added column zmm operating temperature in class characteristics
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

This commit is contained in:
dhanabalan
2026-06-01 17:42:57 +05:30
parent 4ecef99002
commit 79e0c00e4b
5 changed files with 48 additions and 0 deletions

View File

@@ -298,6 +298,8 @@ class ClassCharacteristicExporter extends Exporter
->label('ZMM MOTOR SPEED'),
ExportColumn::make('zqmm_qty')
->label('ZQMM QTY'),
ExportColumn::make('zmm_operating_temperature')
->label('ZMM OPERATING TEMPERATURE'),
ExportColumn::make('mark_status')
->label('MARKED STATUS'),
ExportColumn::make('marked_datetime')

View File

@@ -575,6 +575,10 @@ class ClassCharacteristicImporter extends Importer
->label('ZQMM QTY')
->exampleHeader('ZQMM QTY')
->example(''),
ImportColumn::make('zmm_operating_temperature')
->label('ZMM OPERATING TEMPERATURE')
->exampleHeader('ZMM OPERATING TEMPERATURE')
->example(''),
ImportColumn::make('mark_status')
->label('MARKED STATUS')
->exampleHeader('MARKED STATUS')

View File

@@ -968,6 +968,12 @@ class ClassCharacteristicResource extends Resource
->afterStateUpdated(function (callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
Forms\Components\TextInput::make('zmm_operating_temperature')
->label('ZMM OPERATING TEMPERATURE')
->reactive()
->afterStateUpdated(function (callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
Forms\Components\TextInput::make('mark_status')
->label('MARKED STATUS')
->reactive()
@@ -1804,6 +1810,10 @@ class ClassCharacteristicResource extends Resource
->label('ZQMM QTY')
->alignCenter()
->sortable(),
Tables\Columns\TextColumn::make('zmm_operating_temperature')
->label('ZMM OPERATING TEMPERATURE')
->alignCenter()
->sortable(),
Tables\Columns\TextColumn::make('mark_status')
->label('MARKED STATUS')
->alignCenter()

View File

@@ -152,6 +152,7 @@ class ClassCharacteristic extends Model
'zmm_motor_heading',
'zmm_motor_speed',
'zqmm_qty',
'zmm_operating_temperature',
'mark_status',
'marked_datetime',
'marked_physical_count',

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$sql1 = <<<'SQL'
ALTER TABLE class_characteristics
ADD COLUMN zmm_operating_temperature TEXT DEFAULT NULL
SQL;
DB::statement($sql1);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('class_characteristics', function (Blueprint $table) {
// //
// });
}
};