chnaged logicin panel
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 18s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 3m2s
Laravel Larastan / larastan (pull_request) Failing after 6m17s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 18s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 3m2s
Laravel Larastan / larastan (pull_request) Failing after 6m17s
This commit is contained in:
@@ -441,18 +441,6 @@ class PanelBoxValidationResource extends Resource
|
||||
}
|
||||
}
|
||||
else{
|
||||
// $existInMasterProdOrder = ProductionOrder::where('production_order', $pOrder)->where('plant_id', $plantId)->first();
|
||||
|
||||
// if(!$existInMasterProdOrder && !$existInMasterPo){
|
||||
// Notification::make()
|
||||
// ->title('Production Order Not Found')
|
||||
// ->body("Production Order (Or) Doc No'{$pOrder}' not found against plant code '{$plaCode}' in both production order and Panel Gr master.")
|
||||
// ->danger()
|
||||
// ->send();
|
||||
// $set('item_id', null);
|
||||
// $set('serial_exists', false);
|
||||
// return;
|
||||
// }
|
||||
|
||||
$itemCode = $iCode;
|
||||
|
||||
@@ -645,6 +633,8 @@ class PanelBoxValidationResource extends Resource
|
||||
return;
|
||||
}
|
||||
|
||||
$pOrder = $get('production_order');
|
||||
|
||||
$supplier = $parts[0];
|
||||
$panelBoxCode = $parts[1];
|
||||
$panelBoxSerialNo = implode('/', array_slice($parts, 2));
|
||||
@@ -669,17 +659,6 @@ class PanelBoxValidationResource extends Resource
|
||||
|
||||
$existInMasterPo = PanelGrMaster::where('document_number', $pOrder)->where('plant_id', $plantId)->first();
|
||||
|
||||
// if(!$existInMasterPo){
|
||||
// Notification::make()
|
||||
// ->title('Panel GR Record')
|
||||
// ->body("Production Order (Or) Doc No'{$pOrder}' not found against plant code '{$plaCode}' in Panel Gr master.")
|
||||
// ->danger()
|
||||
// ->send();
|
||||
// $set('item_id', null);
|
||||
// $set('serial_exists', false);
|
||||
// return;
|
||||
// }
|
||||
|
||||
if($existInMasterPo){
|
||||
|
||||
$iId = Item::where('code', $itemCode)->where('plant_id', $plantId)->first();
|
||||
|
||||
Reference in New Issue
Block a user