Added inspection lot number column in panel gr master
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 29s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 26s
Laravel Pint / pint (pull_request) Successful in 3m33s
Laravel Larastan / larastan (pull_request) Failing after 4m47s

This commit is contained in:
dhanabalan
2026-08-18 16:47:38 +05:30
parent dbe1c0a1c2
commit 34c143ba13
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) {
// //
// });
}
};