from server date 2025-01-14
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -16,9 +16,12 @@ class RingkasanHarianController extends Controller
|
||||
$reportRingkasanHarianService = new ReportRingkasanHarianService($kod_cawangan, $request);
|
||||
$reportKawalanStokService = new KawalanStokService($kod_cawangan, $request);
|
||||
|
||||
$ringkasan_report = $reportRingkasanHarianService->getLaporanCawangan()->getContent();
|
||||
$ringkasan_kawalan = $reportKawalanStokService->getLaporanCawangan()->getContent();
|
||||
|
||||
$reports = [
|
||||
'reportRingkasanHarian' => $reportRingkasanHarianService->getLaporanCawangan(),
|
||||
'reportKawalanStok' => $reportKawalanStokService->getLaporanCawangan(),
|
||||
'reportRingkasanHarian' => json_decode($ringkasan_report),
|
||||
'reportKawalanStok' => json_decode($ringkasan_kawalan),
|
||||
];
|
||||
|
||||
return response()->json($reports);
|
||||
|
||||
Reference in New Issue
Block a user