ranjith-dev #983

Merged
jothi merged 9 commits from ranjith-dev into master 2026-09-05 10:47:17 +00:00
2 changed files with 17 additions and 0 deletions
Showing only changes of commit fb7af88a34 - Show all commits

View File

@@ -4,6 +4,7 @@ namespace App\Console\Commands;
use App\Mail\PanelBoxReportMail;
use App\Models\Machine;
use App\Models\PanelBoxValidation;
use App\Models\Plant;
use App\Models\ProductionCharacteristic;
use Illuminate\Console\Command;
@@ -94,6 +95,15 @@ class SendPanelBoxReport extends Command
->distinct()
->get();
foreach ($records as $record) {
$supplierNumber = PanelBoxValidation::where('plant_id', $plantId)
->where('serial_number', $record->serial_number)
->first()?->panel_box_supplier;
$record->panel_box_supplier = $supplierNumber;
}
if ($records->isEmpty()) {
$this->info('No panel box records found.');
return;

View File

@@ -264,6 +264,7 @@
<thead>
<tr>
<th width="12%">S.No</th>
<th>Supplier Number</th>
<th>Serial Number</th>
<th width="20%">Status</th>
</tr>
@@ -279,6 +280,12 @@
{{ $index + 1 }}
</td>
<td>
<span class="supplier-number">
{{ $record->panel_box_supplier }}
</span>
</td>
<td>
<span class="serial-number">
{{ $record->serial_number }}