update
This commit is contained in:
@@ -125,7 +125,10 @@
|
||||
@foreach($detail as $r)
|
||||
@php
|
||||
$isPrinted = !empty($r['ppdsjunior2']) && $r['ppdsjunior2'] != '0';
|
||||
$statusValue = trim((string)($r['status'] ?? '-'));
|
||||
$statusValue = trim((string)($r['status'] ?? ''));
|
||||
if ($statusValue === '') {
|
||||
$statusValue = '-';
|
||||
}
|
||||
$petugas = '';
|
||||
if ($r['nmppdsmiddle2'] != '') {
|
||||
$petugas = $r['nmppdsmiddle2'];
|
||||
@@ -359,15 +362,13 @@
|
||||
if (!table || !filterStatus) {
|
||||
return;
|
||||
}
|
||||
var statusSet = new Set();
|
||||
table.querySelectorAll('tbody tr').forEach(function(row) {
|
||||
var statusText = (row.children[10] ? row.children[10].innerText : '').trim();
|
||||
if (statusText !== '') {
|
||||
statusSet.add(statusText);
|
||||
}
|
||||
});
|
||||
while (filterStatus.options.length > 1) {
|
||||
filterStatus.remove(1);
|
||||
}
|
||||
|
||||
Array.from(statusSet).sort().forEach(function(status) {
|
||||
// Status yang valid untuk rekap penerimaan sample
|
||||
var allowed = ['-', 'Pemeriksaan awal', 'Pemeriksaan Sampel', 'Penerimaan Sampel'];
|
||||
allowed.forEach(function(status) {
|
||||
var opt = document.createElement('option');
|
||||
opt.value = status.toLowerCase();
|
||||
opt.textContent = 'Status: ' + status;
|
||||
|
||||
Reference in New Issue
Block a user