added server edited at 12/10/2024

This commit is contained in:
hafifierahman
2024-10-12 21:21:53 +08:00
parent 1bb813e22e
commit e438f8992d
7 changed files with 22 additions and 6 deletions
@@ -27,7 +27,7 @@ class BackupStokAuditController extends Controller
{
public function backupStokAudit(Request $request){
if($request->zone == 'all'){
$cawangan = Cawangan::on('mysql7')->get();
$cawangan = Cawangan::on('mysql7')->where('version','v2')->get();
}else{
$cawangan = Cawangan::on('mysql7')->where('zone',$request->zone)->get();
}
+2 -2
View File
@@ -303,7 +303,7 @@ class LelongController extends Controller
}
}
$arraylelong = ['bakilelong' => $bakilelong, 'rugilelong' => $rugilelong, 'baki' => $baki_lelong, 'rugi' => $rugi_lelong, 'jumlahlelong' => $jumlah_lelong, 'caslelong' => $cas_lelong];
$arraylelong = ['bakilelong' => $bakilelong, 'rugilelong' => abs($rugilelong), 'baki' => $baki_lelong, 'rugi' => $rugi_lelong, 'jumlahlelong' => $jumlah_lelong, 'caslelong' => $cas_lelong];
return response()->json($arraylelong,200);
}
@@ -543,7 +543,7 @@ class LelongController extends Controller
->whereYear('t_jual','=',$current->year)
->sum('cajlelong');
if($kodcaw === '011232')
if($kodcaw === '011232' && $current->year < 2023)
$cajlelong +=122.5;
return response()->json($cajlelong,200);