Commented item_id load functionality on resource page and process order import only if it has characteristics master
Some checks are pending
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Waiting to run
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
Some checks are pending
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Waiting to run
Gemini PR Review / Gemini PR Review (pull_request) Waiting to run
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Waiting to run
Laravel Larastan / larastan (pull_request) Waiting to run
Laravel Pint / pint (pull_request) Waiting to run
This commit is contained in:
@@ -240,17 +240,17 @@ class ProcessOrderImporter extends Importer
|
||||
$warnMsg[] = 'Same Process Order already exists for this Plant with a different Item Code!';
|
||||
}
|
||||
|
||||
$masterExist = ProductCharacteristicsMaster::where('plant_id', $plantId)->where('item_id', $itemId)->first();
|
||||
// $masterExist = ProductCharacteristicsMaster::where('plant_id', $plantId)->where('item_id', $itemId)->first();
|
||||
|
||||
if (! $masterExist) {
|
||||
$warnMsg[] = 'Characteristics master not found for the given plant!';
|
||||
} else {
|
||||
$masterExist = ProductCharacteristicsMaster::where('plant_id', $plantId)->where('line_id', $lineId)->where('item_id', $itemId)->first();
|
||||
// if (! $masterExist) {
|
||||
// $warnMsg[] = 'Characteristics master not found for the given plant!';
|
||||
// } else {
|
||||
// $masterExist = ProductCharacteristicsMaster::where('plant_id', $plantId)->where('line_id', $lineId)->where('item_id', $itemId)->first();
|
||||
|
||||
if (! $masterExist) {
|
||||
$warnMsg[] = 'Characteristics master not found for the given line!';
|
||||
}
|
||||
}
|
||||
// if (! $masterExist) {
|
||||
// $warnMsg[] = 'Characteristics master not found for the given line!';
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
// $user = User::where('name', $this->data['created_by'])->first();
|
||||
|
||||
Reference in New Issue
Block a user