Compare commits
12 Commits
02c3a9aff0
...
renovate/a
| Author | SHA1 | Date | |
|---|---|---|---|
| 961c281c02 | |||
| 62e577a87f | |||
|
|
dbd7c2860f | ||
| 651f25b8de | |||
|
|
8bf3bfc3f8 | ||
| 7106d2aa13 | |||
|
|
0561a2443e | ||
| ad35a64869 | |||
|
|
6d4ed2a384 | ||
| 4b06a32893 | |||
|
|
692a114f4b | ||
|
|
b6ea3b87ca |
@@ -29,7 +29,7 @@ class WeightValidationExporter extends Exporter
|
||||
ExportColumn::make('item.code')
|
||||
->label('ITEM CODE'),
|
||||
ExportColumn::make('obd_number')
|
||||
->label('OBD NUMBER'),
|
||||
->label('OBD / GR NUMBER'),
|
||||
ExportColumn::make('line_number')
|
||||
->label('LINE NUMBER'),
|
||||
ExportColumn::make('batch_number')
|
||||
@@ -41,7 +41,7 @@ class WeightValidationExporter extends Exporter
|
||||
ExportColumn::make('vehicle_number')
|
||||
->label('VEHICLE NUMBER'),
|
||||
ExportColumn::make('bundle_number')
|
||||
->label('BUNDLE NUMBER'),
|
||||
->label('BUNDLE / COIL NUMBER'),
|
||||
ExportColumn::make('picked_weight')
|
||||
->label('PICKED WEIGHT'),
|
||||
ExportColumn::make('scanned_by')
|
||||
|
||||
@@ -62,9 +62,9 @@ class WeightValidationResource extends Resource
|
||||
->columnSpan(1)
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('obd_number')
|
||||
->label('OBD Number')
|
||||
->label('OBD / GR Number')
|
||||
->minLength(8)
|
||||
->placeholder('Scan the valid OBD Number')
|
||||
->placeholder('Scan the valid OBD / GR Number')
|
||||
->columnSpan(1)
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('line_number')
|
||||
@@ -99,11 +99,11 @@ class WeightValidationResource extends Resource
|
||||
->columnSpan(1)
|
||||
->placeholder('Scan the valid Heat Number'),
|
||||
Forms\Components\TextInput::make('bundle_number')
|
||||
->label('Bundle Number')
|
||||
->label('Bundle / Coil Number')
|
||||
->minLength(1)
|
||||
->numeric()
|
||||
->columnSpan(1)
|
||||
->placeholder('Scan the valid Bundle Number'),
|
||||
->placeholder('Scan the valid Bundle / Coil Number'),
|
||||
Forms\Components\TextInput::make('picked_weight')
|
||||
->label('Picked Weight')
|
||||
->minLength(1)
|
||||
@@ -588,7 +588,7 @@ class WeightValidationResource extends Resource
|
||||
} else {
|
||||
$lineNumbers[] = $lineNumber;
|
||||
}
|
||||
if (Str::length($batchNumber) < 8 || ! is_numeric($batchNumber)) {// ctype_alnum
|
||||
if (Str::length($batchNumber) < 1 || ! is_numeric($batchNumber)) {// ctype_alnum
|
||||
$validData = false;
|
||||
$invalidBatch[] = $materialCode;
|
||||
}
|
||||
@@ -663,7 +663,7 @@ class WeightValidationResource extends Resource
|
||||
if (! empty($uniqueInvalidBatch)) {
|
||||
Notification::make()
|
||||
->title('Invalid: Batch Numbers')
|
||||
->body('Batch number should contain minimum 8 digit numeric values!<br>Following item codes has invalid batch number:<br>'.implode(', ', $uniqueInvalidBatch))
|
||||
->body('Batch number should contain minimum 1 digit numeric values!<br>Following item codes has invalid batch number:<br>'.implode(', ', $uniqueInvalidBatch))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->send();
|
||||
|
||||
@@ -26,6 +26,10 @@ class PanelBoxValidation extends Model
|
||||
'part_validation3',
|
||||
'part_validation4',
|
||||
'part_validation5',
|
||||
'panel_box_supplier',
|
||||
'panel_box_serial_number',
|
||||
'batch_number',
|
||||
'panel_box_code',
|
||||
'created_by',
|
||||
'updated_by'
|
||||
];
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"require": {
|
||||
"php": "^8.2",
|
||||
"alperenersoy/filament-export": "^3.0",
|
||||
"althinect/filament-spatie-roles-permissions": "^2.3",
|
||||
"althinect/filament-spatie-roles-permissions": "^4.0",
|
||||
"diogogpinto/filament-auth-ui-enhancer": "^1.0",
|
||||
"erag/laravel-pwa": "^1.9",
|
||||
"filament/filament": "^3.3",
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<?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_box_validations
|
||||
ADD COLUMN panel_box_supplier TEXT DEFAULT NULL
|
||||
SQL;
|
||||
|
||||
DB::statement($sql1);
|
||||
|
||||
$sql2 = <<<'SQL'
|
||||
ALTER TABLE panel_box_validations
|
||||
ADD COLUMN panel_box_serial_number TEXT DEFAULT NULL
|
||||
SQL;
|
||||
|
||||
DB::statement($sql2);
|
||||
|
||||
$sql3 = <<<'SQL'
|
||||
ALTER TABLE panel_box_validations
|
||||
ADD COLUMN panel_box_code TEXT DEFAULT NULL
|
||||
SQL;
|
||||
|
||||
DB::statement($sql3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('panel_box_validations', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user