removed line as mandatory in item importer #1189

Merged
jothi merged 2 commits from ranjith-dev into master 2026-10-06 11:34:58 +00:00
Showing only changes of commit 4d594dfaaa - Show all commits

View File

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