add laporan ringkasan terkumpul in services
This commit is contained in:
@@ -15,6 +15,7 @@ use App\Models\Lejeram;
|
||||
use App\Models\Cawangan;
|
||||
|
||||
use App\Services\ImbangdugaServices as ImbanganDuga;
|
||||
use App\Services\RingkasanHarianServices;
|
||||
|
||||
class AkaunController extends Controller
|
||||
{
|
||||
@@ -779,7 +780,7 @@ class AkaunController extends Controller
|
||||
$tarikh_cetak = $current->toDateString();
|
||||
|
||||
if($request->datemula == null){
|
||||
$mula_date = '2017-01-01';
|
||||
$mula_date = '2023-01-01';
|
||||
}else{
|
||||
$mula_date = $request->datemula;
|
||||
}
|
||||
@@ -790,13 +791,15 @@ class AkaunController extends Controller
|
||||
$hingga_date = $request->datehingga;
|
||||
}
|
||||
|
||||
$laporan_ringkasan = Http::get($api_url . '/api/laporan/terkumpul',[
|
||||
'kodcaw' => $request->kodcaw,
|
||||
'mula' => $mula_date,
|
||||
'akhir' => $hingga_date
|
||||
])->json();
|
||||
$ringkasan = new RingkasanHarianServices();
|
||||
$laporan_ringkasan = $ringkasan->getRingkasanHarian($mula_date,$hingga_date,$request->kodcaw,'cawangan');
|
||||
// $laporan_ringkasan = Http::get($api_url . '/api/laporan/terkumpul',[
|
||||
// 'kodcaw' => $request->kodcaw,
|
||||
// 'mula' => $mula_date,
|
||||
// 'akhir' => $hingga_date
|
||||
// ])->json();
|
||||
|
||||
$laporan_ringkasan = $laporan_ringkasan[0];
|
||||
// $laporan_ringkasan = $laporan_ringkasan[0];
|
||||
|
||||
$cawangan=Http::get(config('api.url').'/api/cawangan/detail/'.$request->kodcaw)->json();
|
||||
$cawangan_detail=$cawangan[0];
|
||||
|
||||
Reference in New Issue
Block a user