Untitled
unknown
plain_text
2 years ago
744 B
9
Indexable
//ADMINISTRATOR CETAK
function peminjaman_cetak()
{
$id = $this->uri->segment(3);
// Ambil data dengan 'status_item' yang 'Approve'
$data['rows'] = $this->model_app->view_pj_header($id)->row_array();
// Ambil data 'mst_peminjaman_dtl' dengan 'status_item' yang 'Approve'
$data['record'] = $this->model_app->view_join_where(
'mst_peminjaman_dtl',
'mst_item',
'kode_item',
array('id_peminjaman' => $id, 'status_item' => 'Approve'), // Filter status_item
'id_dpeminjaman',
'DESC'
);
$this->template->load('administrator/template', 'administrator/additional/mod_peminjaman/print_pinjam', $data);
}Editor is loading...