Added inspection lot number column in panel gr master #904

Merged
jothi merged 1 commits from ranjith-dev into master 2026-08-18 11:17:57 +00:00
3 changed files with 40 additions and 0 deletions

View File

@@ -85,6 +85,9 @@ class PanelGrMasterResource extends Resource
Forms\Components\TextInput::make('supplier_number')
->label('Supplier Number')
->required(),
Forms\Components\TextInput::make('inspection_lot_number')
->label('Inspection Lot Number')
->required(),
Forms\Components\TextInput::make('quantity')
->label('Quantity')
->numeric()
@@ -144,6 +147,11 @@ class PanelGrMasterResource extends Resource
->searchable()
->alignCenter()
->sortable(),
Tables\Columns\TextColumn::make('inspection_lot_number')
->label('Supplier Number')
->searchable()
->alignCenter()
->sortable(),
Tables\Columns\TextColumn::make('quantity')
->label('Quantity')
->searchable()

View File

@@ -13,6 +13,7 @@ class PanelGrMaster extends Model
protected $fillable = [
'plant_id',
'item_id',
'inspection_lot_number',
'document_number',
'invoice_number',
'supplier_number',

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 panel_gr_masters
ADD COLUMN inspection_lot_number TEXT DEFAULT NULL
SQL;
DB::statement($sql1);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('panel_gr_masters', function (Blueprint $table) {
// //
// });
}
};