require_once('../../../config/config.php');

define("_JPGRAPH_PATH", "$path/function/mpdf/jpgraph/src/"); // must define this before including mpdf.php file
$JpgUseSVGFormat = true;
define('_MPDF_URI', "$url_rewrite/function/mpdf/");  // must be  a relative or absolute URI - not a file system path


include ('../../../function/tanggal/tanggal.php');
include "../../report_engine_daftar.php";
require_once('../../../function/mpdf/mpdf.php');
$id = $_GET['idusulan'];
$sk = $_GET['noUsul'];
$tglHapus = $_GET['tglHapus'];
$tipe=$_GET['tipe_file'];
//mendeklarasikan report_engine. FILE utama untuk reporting
$REPORT_DAFTAR = new report_engine_daftar();
// pr($_GET);



if($tglHapus != ''){
	$tanggalCetak = format_tanggal($tglHapus);	
}else{
	$tglcetak = date("Y-m-d");
	$tanggalCetak = format_tanggal($tglcetak);	
}
$gambar = $FILE_GAMBAR_KABUPATEN;

$TitleSk="PERMOHONAN USULAN";
$data = $RETRIEVE_REPORT->daftar_barang_berdasarkan_usulan_penghapusan($id);
// pr($data);
$modul = $_GET['menuID'];
$mode = $_GET['mode'];
$tab = $_GET['tab'];
$tglawal = $_GET['tglawalperolehan'];
if($tglawal != ''){
	$tglawalperolehan = $tglawal;
}else{
	$tglawalperolehan = '0000-00-00';
}
$tglakhirperolehan = $_GET['tglakhirperolehan'];
$skpd_id = $_GET['skpd_id'];
$tipe=$_GET['tipe_file'];
$tglcetak=$_GET['tglcetak'];
// pr($_GET);
// exit;
$REPORT=new report_engine_daftar();

$data=array(
    "modul"=>"",
	"tglawalperolehan"=>$tglawalperolehan,
    "tglakhirperolehan"=>$tglakhirperolehan,
    "skpd_id"=>$skpd_id,
    "mode"=>$mode,
    "tab"=>$tab,
    "bukuInv"=>"bukuInv"
);
//pr($data);

$REPORT_RETRIEVE=new RETRIEVE_REPORT();

$data=$REPORT_RETRIEVE->daftar_pengadaan_berdasarkan_skpd($skpd_id,$tglawalperolehan,$tglakhirperolehan);