Bugs Fix Download Excel Realisasi Pendapatan
This commit is contained in:
@@ -239,9 +239,9 @@ class RealisasiPendapatanController extends Controller
|
||||
if ($post["export-type"]=="excel")
|
||||
{
|
||||
|
||||
$data = PendapatanRealisasi::orderBy("created_at","ASC");
|
||||
$data = PendapatanRealisasi::where("tahun", $ta)->orderBy("created_at","ASC");
|
||||
if (!empty($sps)){
|
||||
$data->where("id_sps",$sps);
|
||||
$data->where("kode_rekening_sps",$sps);
|
||||
}
|
||||
|
||||
$fileName = 'Realisasi-pendapatan.xlsx';
|
||||
|
||||
Reference in New Issue
Block a user