1
0
forked from poc/pds

removed line as mandatory in item importer

This commit is contained in:
dhanabalan
2026-10-06 17:03:51 +05:30
parent 4c93bc2bd5
commit 4d594dfaaa

View File

@@ -84,11 +84,13 @@ class ItemImporter extends Importer
} }
} }
if(!empty($lineName)){
$lineId = Line::where('plant_id',$plant->id)->where('name', $lineName)->first(); $lineId = Line::where('plant_id',$plant->id)->where('name', $lineName)->first();
if (! $lineId) { if (! $lineId) {
$warnMsg[] = 'Line name not found'; // '" . $plantCod . "' $warnMsg[] = 'Line name not found'; // '" . $plantCod . "'
} }
}
if (Str::length($iCode) < 6 || ! ctype_alnum($iCode)) { if (Str::length($iCode) < 6 || ! ctype_alnum($iCode)) {
$warnMsg[] = 'Invalid item code found'; $warnMsg[] = 'Invalid item code found';