Added inspection lot number column in panel gr master #904
@@ -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()
|
||||
|
||||
@@ -13,6 +13,7 @@ class PanelGrMaster extends Model
|
||||
protected $fillable = [
|
||||
'plant_id',
|
||||
'item_id',
|
||||
'inspection_lot_number',
|
||||
'document_number',
|
||||
'invoice_number',
|
||||
'supplier_number',
|
||||
|
||||
@@ -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) {
|
||||
// //
|
||||
// });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user