Merged in hotfix/bilangan-kuantiti (pull request #196)

fix i+1
This commit is contained in:
Muhd hafifie
2024-07-11 02:58:40 +00:00
+1 -1
View File
@@ -246,7 +246,7 @@ class OnePercentService
$akru = AkruNetPecahan::on($caw['mysql'])->where('tahun',$request->year)->orderBy('bulan')->orderBy('tahun')->get()->toArray();
for($i=0;$i<=11;$i++){
$array_akru = array_filter($akru,function($e) use($i){
return $i == $e['bulan'];
return ($i+1) == $e['bulan'];
});
if(!empty($array_akru)){