Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
744 B
2
Indexable
Never
//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);
    }