Compare commits
2 Commits
7a700b8fee
...
17f81deb10
| Author | SHA1 | Date | |
|---|---|---|---|
| 17f81deb10 | |||
|
|
21b40b499a |
@@ -82,7 +82,7 @@ class PlantImporter extends Importer
|
||||
$warnMsg[] = 'Name should contain at least 5 characters!';
|
||||
}
|
||||
if ($wareHouseNo == null || $wareHouseNo == '' || ! $wareHouseNo) {
|
||||
$warnMsg[] = "Warehouse number can't be empty!";
|
||||
// $warnMsg[] = "Warehouse number can't be empty!";
|
||||
} elseif (! is_numeric($wareHouseNo)) {
|
||||
$warnMsg[] = 'Warehouse number should contain only numeric values!';
|
||||
} elseif (Str::length($wareHouseNo) == 3) {
|
||||
|
||||
@@ -132,7 +132,7 @@ class PlantResource extends Resource
|
||||
->hint(fn ($get) => $get('pNameError') ? $get('pNameError') : null)
|
||||
->hintColor('danger'),
|
||||
Forms\Components\TextInput::make('warehouse_number')
|
||||
->required()
|
||||
// ->required()
|
||||
->label('Warehouse Number')
|
||||
->placeholder('Scan the valid warehouse number')
|
||||
->unique(ignoreRecord: true)
|
||||
|
||||
Reference in New Issue
Block a user