from server date 2025-01-14

This commit is contained in:
Hafifie PKB
2025-01-14 22:54:48 +08:00
parent 09af89a249
commit 1aee7390a6
10 changed files with 69 additions and 23 deletions
@@ -31,8 +31,8 @@ class BalanceSheetsController extends Controller
}
public function updateIGBalanceSheets(Request $request){
$cawangan = Cawangan::on('mysql7')->where('zone','<>',1)->get();
$date = Carbon::now()->month($request->month);
$cawangan = Cawangan::on('mysql7')->where('version','v2')->get();
$date = Carbon::create($request->year)->month($request->month);
$lastDay = (clone $date)->endOfMonth();
try{