Skip to content

Commit ff5320d

Browse files
fix
1 parent 9752818 commit ff5320d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Nova/Actions/SinkronisasiDataAnggaran.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function handle(ActionFields $fields, Collection $models)
6262
move_uploaded_file($filePath, $newFilePath);
6363

6464
MataAnggaran::cache()->disable();
65-
MataAnggaran::where('dipa_id', $model->id)->whereNull('is_manual')->update(['updated_at' => null]);
65+
MataAnggaran::where('dipa_id', $model->id)->where('is_pok', true)->whereNull('is_manual')->update(['updated_at' => null]);
6666
$collections = (new FastExcel)->import($newFilePath);
6767
$index = 0;
6868
foreach ($collections as $row) {
@@ -96,7 +96,7 @@ public function handle(ActionFields $fields, Collection $models)
9696
$mataAnggaran->rpd_11 = $row['POK_NILAI_11'];
9797
$mataAnggaran->rpd_12 = $row['POK_NILAI_12'];
9898
}
99-
99+
$mataAnggaran->is_pok = true;
100100
$mataAnggaran->updated_at = now();
101101
$index++;
102102
$mataAnggaran->ordered = $index;

0 commit comments

Comments
 (0)