Added updated_by column in serial validation
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 24s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 29s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 16s
Laravel Pint / pint (pull_request) Successful in 11m55s
Laravel Larastan / larastan (pull_request) Failing after 12m44s

This commit is contained in:
dhanabalan
2026-06-05 09:23:41 +05:30
parent 9337865501
commit b582a18a14

View File

@@ -350,7 +350,7 @@ class CreateSerialValidation extends CreateRecord
// ->send(); // ->send();
// $this->dispatch('playNotificationSound'); // $this->dispatch('playNotificationSound');
// // $hasRecords = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null; // // $hasRecords = SerialValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null;
// // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); //$this->invoiceNumber // // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); //$this->invoiceNumber
// $this->dispatch('refreshMaterialInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); // $this->dispatch('refreshMaterialInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId);
@@ -994,7 +994,7 @@ class CreateSerialValidation extends CreateRecord
// 'total_quantity' => $totQuan, // 'total_quantity' => $totQuan,
// 'scanned_quantity'=> $scanSQuan, // 'scanned_quantity'=> $scanSQuan,
// ]); // ]);
// //$hasRecords = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null; // //$hasRecords = SerialValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null;
// // $this->dispatch('refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); // // $this->dispatch('refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId);
// if ($totQuan == $scanSQuan) // if ($totQuan == $scanSQuan)
@@ -1421,7 +1421,7 @@ class CreateSerialValidation extends CreateRecord
// // $disk->delete($filePath); // // $disk->delete($filePath);
// // } // // }
// // $hasRecords = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null; // // $hasRecords = SerialValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null;
// // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); //$this->invoiceNumber // // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); //$this->invoiceNumber
// $this->dispatch('refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); // $this->dispatch('refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId);
// } // }
@@ -2033,7 +2033,7 @@ class CreateSerialValidation extends CreateRecord
// // $disk->delete($filePath); // // $disk->delete($filePath);
// // } // // }
// // $hasRecords = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null; // // $hasRecords = SerialValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null;
// // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); //$this->invoiceNumber // // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); //$this->invoiceNumber
// $this->dispatch('refreshMaterialInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); // $this->dispatch('refreshMaterialInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId);
// } // }
@@ -2416,7 +2416,7 @@ class CreateSerialValidation extends CreateRecord
// // $disk->delete($filePath); // // $disk->delete($filePath);
// // } // // }
// // $hasRecords = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null; // // $hasRecords = SerialValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null;
// // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); //$this->invoiceNumber // // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); //$this->invoiceNumber
// $this->dispatch('refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); // $this->dispatch('refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId);
// } // }
@@ -2980,6 +2980,7 @@ class CreateSerialValidation extends CreateRecord
'quantity' => 1, 'quantity' => 1,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'created_by' => $operatorName, 'created_by' => $operatorName,
'updated_by' => $operatorName,
]); ]);
$inserted++; $inserted++;
} }
@@ -3021,6 +3022,7 @@ class CreateSerialValidation extends CreateRecord
'quantity' => $bundleQty, 'quantity' => $bundleQty,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'created_by' => $operatorName, 'created_by' => $operatorName,
'updated_by' => $operatorName,
]); ]);
$inserted++; $inserted++;
} }
@@ -3084,6 +3086,7 @@ class CreateSerialValidation extends CreateRecord
$existEmpRecQty->update([ $existEmpRecQty->update([
'quantity' => $newInsQty, 'quantity' => $newInsQty,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'updated_by' => $operatorName,
'updated_at' => now(), 'updated_at' => now(),
]); ]);
$newQuan--; $newQuan--;
@@ -3096,6 +3099,7 @@ class CreateSerialValidation extends CreateRecord
'quantity' => $newInsQty, 'quantity' => $newInsQty,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'created_by' => $operatorName, 'created_by' => $operatorName,
'updated_by' => $operatorName,
]); ]);
$inserted++; $inserted++;
} }
@@ -3115,6 +3119,7 @@ class CreateSerialValidation extends CreateRecord
$existEmpRecQty->update([ $existEmpRecQty->update([
'quantity' => $newInsQty, 'quantity' => $newInsQty,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'updated_by' => $operatorName,
'updated_at' => now(), 'updated_at' => now(),
]); ]);
$newQuan--; $newQuan--;
@@ -3127,6 +3132,7 @@ class CreateSerialValidation extends CreateRecord
'quantity' => $newInsQty, 'quantity' => $newInsQty,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'created_by' => $operatorName, 'created_by' => $operatorName,
'updated_by' => $operatorName,
]); ]);
$inserted++; $inserted++;
} }
@@ -3605,6 +3611,7 @@ class CreateSerialValidation extends CreateRecord
'serial_number' => $serialNumber, 'serial_number' => $serialNumber,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'created_by' => $operatorName, 'created_by' => $operatorName,
'updated_by' => $operatorName,
]); ]);
$inserted++; $inserted++;
} }
@@ -4153,6 +4160,7 @@ class CreateSerialValidation extends CreateRecord
'quantity' => 1, 'quantity' => 1,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'created_by' => $operatorName, 'created_by' => $operatorName,
'updated_by' => $operatorName,
]); ]);
$inserted++; $inserted++;
} }
@@ -4187,6 +4195,7 @@ class CreateSerialValidation extends CreateRecord
'quantity' => $bundleQty, 'quantity' => $bundleQty,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'created_by' => $operatorName, 'created_by' => $operatorName,
'updated_by' => $operatorName,
]); ]);
$inserted++; $inserted++;
} }
@@ -4219,6 +4228,7 @@ class CreateSerialValidation extends CreateRecord
'quantity' => $totalExcelQty, 'quantity' => $totalExcelQty,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'created_by' => $operatorName, 'created_by' => $operatorName,
'updated_by' => $operatorName,
]); ]);
$inserted++; $inserted++;
} }
@@ -4256,7 +4266,7 @@ class CreateSerialValidation extends CreateRecord
// $disk->delete($filePath); // $disk->delete($filePath);
// } // }
// $hasRecords = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null; // $hasRecords = SerialValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null;
// $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId, onCapFocus: false); //$this->invoiceNumber // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId, onCapFocus: false); //$this->invoiceNumber
$this->dispatch('refreshMaterialInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId); $this->dispatch('refreshMaterialInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId);
} }
@@ -4584,6 +4594,7 @@ class CreateSerialValidation extends CreateRecord
'serial_number' => $serialNumber, 'serial_number' => $serialNumber,
'operator_id' => $operatorName, 'operator_id' => $operatorName,
'created_by' => $operatorName, 'created_by' => $operatorName,
'updated_by' => $operatorName,
]); ]);
$inserted++; $inserted++;
} }
@@ -4621,7 +4632,7 @@ class CreateSerialValidation extends CreateRecord
// $disk->delete($filePath); // $disk->delete($filePath);
// } // }
// $hasRecords = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null; // $hasRecords = SerialValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->first()->stickerMasterRelation->material_type ?? null;
// $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId, onCapFocus: false); //$this->invoiceNumber // $this->dispatch( (!empty($hasRecords) && $hasRecords) ? 'refreshMaterialInvoiceData' : 'refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId, onCapFocus: false); //$this->invoiceNumber
$this->dispatch('refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId, onCapFocus: false); $this->dispatch('refreshInvoiceData', invoiceNumber: $invoiceNumber, plantId: $plantId, onCapFocus: false);
} }