Fix resident aid saving bug and implement Bantuan Darurat status
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ if ($type === 'penduduk') {
|
||||
$lng = (float)$row[7];
|
||||
if ($lat === 0.0 && $lng === 0.0) { $skipped++; continue; }
|
||||
|
||||
$status = in_array($row[8] ?? '', ['sudah','belum','menunggu']) ? $row[8] : 'belum';
|
||||
$status = in_array($row[8] ?? '', ['sudah','belum','menunggu','darurat']) ? $row[8] : 'belum';
|
||||
$tanggal_bantuan = !empty($row[10]) ? sanitize($row[10]) : null;
|
||||
$nominal_bantuan = isset($row[11]) && $row[11] !== '' ? (float)str_replace(['.', ','], ['', '.'], $row[11]) : null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user