Esempio n. 1
0
 function index()
 {
     permissionUser();
     $this->data['options_barang'] = options_row($this->model_name, 'get_barang', 'id', 'title', '-- Pilih Barang --', 'kode');
     $this->data['options_gudang'] = options_row($this->model_name, 'get_gudang', 'id', 'title', '-- Semua Gudang --');
     $this->data['options_kurensi'] = options_row($this->model_name, 'get_kurensi', 'id', 'title', '-- Pilih Kurensi --');
     $this->_render_page($this->module . '/' . $this->file_name, $this->data);
 }
Esempio n. 2
0
 function index()
 {
     $this->data['options_barang'] = options_row($this->model_name, 'get_barang', 'kode', 'title', '-- Pilih Barang --');
     $this->data['options_satuan'] = options_row($this->model_name, 'get_satuan', 'id', 'title', '-- Pilih Satuan --');
     $this->data['options_gudang'] = options_row($this->model_name, 'get_gudang', 'id', 'title', '-- Pilih Gudang --');
     $this->data['options_kurensi'] = options_row($this->model_name, 'get_kurensi', 'id', 'title', '-- Pilih Kurensi --');
     $this->_render_page('master/stok/index', $this->data);
 }
Esempio n. 3
0
 function input()
 {
     $this->data['title'] = $this->title . ' - Input';
     permissionUser();
     $this->data['options_kontak'] = options_row($this->model_name, 'get_kontak', 'id', 'title', '-- Pilih Supplier --');
     $this->data['options_kurensi'] = options_row($this->model_name, 'get_kurensi', 'id', 'title', '-- Pilih Kurensi --');
     $this->_render_page($this->module . '/' . $this->file_name . '/input', $this->data);
 }
Esempio n. 4
0
 function index()
 {
     $this->data['title'] = ucfirst($this->title);
     $this->data['page_title'] = $this->page_title;
     permission();
     $year_now = date('Y');
     $this->data['period'] = $this->setup->render_periode($year_now);
     $this->data['session'] = getAll('hris_global_sess', array('id' => 'order/desc'));
     $this->data['ptkp'] = options_row('payroll', 'get_ptkp', 'id', 'title', '-- Choose Tax Status --');
     $this->data['currency'] = options_row('payroll', 'get_currency', 'id', 'title', '-- Choose Currency --');
     $this->data['tax_method'] = options_row('payroll', 'get_tax_method', 'id', 'title', '-- Choose Tax Method --');
     $this->_render_page($this->filename, $this->data);
 }
Esempio n. 5
0
 public function index()
 {
     permissionAdmin();
     $groups = $this->ion_auth->groups()->result_array();
     $this->data['groups'] = $groups;
     $this->data['full_name'] = array('name' => 'full_name', 'id' => 'full_name', 'type' => 'text');
     $this->data['username'] = array('name' => 'username', 'id' => 'username', 'type' => 'text');
     $this->data['email'] = array('name' => 'email', 'id' => 'email', 'type' => 'text');
     $this->data['phone'] = array('name' => 'phone', 'id' => 'phone', 'type' => 'text');
     $this->data['password'] = array('name' => 'password', 'id' => 'password', 'type' => 'password');
     $this->data['password_confirm'] = array('name' => 'password_confirm', 'id' => 'password_confirm', 'type' => 'password');
     $this->data['options_user'] = options_row('users', 'get_users', 'id', 'full_name', '-- Pilih Pengguna --');
     $this->_render_page('users/index', $this->data);
 }
Esempio n. 6
0
 function input()
 {
     permissionUser();
     $num_rows = getAll('order')->num_rows();
     $last_id = $num_rows > 0 ? $this->db->select('id')->order_by('id', 'asc')->get('order')->last_row()->id : 0;
     $this->data['last_id'] = $num_rows > 0 ? $last_id + 1 : 1;
     $this->data['barang'] = getAll('barang')->result_array();
     $this->data['satuan'] = getAll('satuan')->result_array();
     $this->data['kurensi'] = getAll('kurensi')->result();
     $this->data['metode'] = getAll('metode_pembayaran')->result();
     $this->data['gudang'] = getAll('gudang')->result();
     $this->data['options_supplier'] = options_row($this->model_name, 'get_supplier', 'id', 'title', '-- Pilih Supplier --');
     $this->_render_page('transaksi/order/input', $this->data);
 }
Esempio n. 7
0
 function index()
 {
     $this->data['title'] = ucfirst($this->title);
     $this->data['page_title'] = $this->page_title;
     permission();
     $year_now = date('Y');
     //$this->data['period'] = $this->setup->render_periode($year_now);
     $this->data['period'] = getAll('payroll_period', array('year' => 'order/asc', 'month' => 'order/asc'));
     $this->data['options_group'] = options_row('payroll', 'get_group', 'id', 'title', '-- Choose Payroll Group --');
     $filter = array('is_deleted' => 'where/0', 'is_active' => 'where/1');
     $this->data['component'] = getAll('payroll_component', $filter)->result();
     $this->data['ptkp'] = options_row('payroll', 'get_ptkp', 'id', 'title', '-- Choose Tax Status --');
     $this->data['currency'] = options_row('payroll', 'get_currency', 'id', 'title', '-- Choose Currency --');
     $this->data['tax_method'] = options_row('payroll', 'get_tax_method', 'id', 'title', '-- Choose Tax Method --');
     $this->_render_page($this->filename, $this->data);
 }
Esempio n. 8
0
 function index($id = NULL)
 {
     if (!$this->ion_auth->logged_in()) {
         redirect('auth/login', 'refresh');
     } elseif (!$this->ion_auth->is_admin()) {
         return show_error('You must be an administrator to view this page.');
     } else {
         $data['url_ajax_list'] = site_url('position_group/ajax_list');
         $data['url_ajax_add'] = site_url('position_group/ajax_add');
         $data['url_ajax_edit'] = site_url('position_group/ajax_edit');
         $data['url_ajax_delete'] = site_url('position_group/ajax_delete');
         $data['url_ajax_update'] = site_url('position_group/ajax_update');
         $data['options_parent_position'] = options_row($this->model_name, 'get_parent_position', 'id', 'title', 'Parent position');
         $this->_render_page('position_group/index', $data);
     }
 }
Esempio n. 9
0
 function index()
 {
     $this->data['title'] = $this->title;
     $this->data['main_title'] = $this->module . '';
     $q = $this->stok->get_judul();
     $this->data['tipedokumen'] = $q->result();
     $filter['statusisasi'] = 'where/1';
     if ($this->session->userdata('webmaster_grup') == 10) {
         $filter['id'] = 'where/2';
     }
     $this->data['opt_dok'] = GetOptAll('report', '-Document-', $filter, 'title_document');
     $this->data['options_barang'] = options_row($this->model_name, 'get_barang', 'kode', 'title', '-- Pilih Barang --');
     $this->data['options_satuan'] = options_row($this->model_name, 'get_satuan', 'id', 'title', '-- Pilih Satuan --');
     $this->data['options_gudang'] = options_row($this->model_name, 'get_gudang', 'id', 'title', '-- Pilih Gudang --');
     $this->data['options_kurensi'] = options_row($this->model_name, 'get_kurensi', 'id', 'title', '-- Pilih Kurensi --');
     $this->_render_page('report/menu/menu', $this->data);
 }
Esempio n. 10
0
 function input()
 {
     $this->data['title'] = $this->title . ' - Input';
     $this->data['main_title'] = $this->main_title;
     $this->data['file_name'] = $this->file_name;
     $this->data['module'] = $this->module;
     permissionUser();
     $num_rows = getAll($this->table_name)->num_rows();
     $last_id = $num_rows > 0 ? $this->db->select('id')->order_by('id', 'asc')->get($this->table_name)->last_row()->id : 0;
     $this->data['last_id'] = $num_rows > 0 ? $last_id + 1 : 1;
     $this->data['barang'] = getAll('barang')->result_array();
     $this->data['satuan'] = getAll('satuan')->result_array();
     $this->data['kurensi'] = getAll('kurensi')->result();
     $this->data['metode'] = getAll('metode_pembayaran')->result();
     $this->data['gudang'] = getAll('gudang')->result();
     $this->data['options_kontak'] = options_row('main', 'get_kontak', 'id', 'title', '-- Pilih kontak --');
     $this->data['po'] = GetAllSelect('purchase_order', array('id', 'po'), array('is_invoiced' => 'where/0', 'id' => 'order/desc'))->result();
     $this->_render_page($this->module . '/' . $this->file_name . '/input', $this->data);
 }
Esempio n. 11
0
 function get_satuan()
 {
     $this->data['options_satuan'] = options_row('barang', 'get_satuan', 'id', 'title', '-- Pilih Satuan --');
     $this->load->view("master/barang/satuan", $this->data);
 }
Esempio n. 12
0
 function index()
 {
     permissionUser();
     $this->data['options_lokasi_gudang'] = options_row('gudang', 'get_lokasi_gudang', 'id', 'title', '-- Pilih Lokasi Gudang --');
     $this->_render_page($this->module . '/' . $this->file_name, $this->data);
 }
Esempio n. 13
0
 function cariref()
 {
     $num_rows = getAll($this->module . '_' . $this->file_name)->num_rows();
     $last_id = $num_rows > 0 ? $this->db->select('id')->order_by('id', 'asc')->get($this->module . '_' . $this->file_name)->last_row()->id : 0;
     $data['last_id'] = $num_rows > 0 ? $last_id + 1 : 1;
     $this->load->model('sales/order_model', 'so');
     $data['options_kontak'] = options_row('so', 'get_kontak', 'id', 'title', '-- Pilih Supplier --');
     $v = $_POST['v'];
     $cariref = $this->db->query("SELECT * FROM sales_order WHERE (id='{$v}' OR so='{$v}') ");
     if ($cariref->num_rows() > 0) {
         $data['refid'] = $cariref->row_array();
         //if($data['refid']['is_app_lv1']==1){
         if ($data['refid']['is_closed'] == 0) {
             $data['reftype'] = 'sales_order';
             $cekparsial = $this->db->query("SELECT * FROM stok_pengeluaran WHERE ref_type='" . $data['reftype'] . "' AND ref_id='" . $data['refid']['id'] . "'");
             if ($cekparsial->num_rows() > 0) {
                 $data['part'] = TRUE;
                 $data['partno'] = $cekparsial->num_rows() + 1;
             }
             $this->load->view('stok/pengeluaran/input_id', $data);
         } else {
             $data['message'] = "Transaksi sudah CLOSED";
             $this->load->view('stok/pengeluaran/error', $data);
         }
         /* }
         			else{
         				$data['message']="S.O BELUM di APPROVE";
         			$this->load->view('stok/pengeluaran/error',$data);} */
     } else {
         $data['message'] = "Transaksi TIDAK DITEMUKAN";
         $this->load->view('stok/pengeluaran/error', $data);
     }
 }
Esempio n. 14
0
 function show_modal($id)
 {
     $data['id'] = $id;
     $data['barang'] = getAll('barang')->result_array();
     $data['satuan'] = getAll('satuan')->result_array();
     $data['options_satuan'] = options_row('main', 'get_satuan', 'id', 'title', '-- Pilih Satuan --');
     $this->load->view('request/modal', $data);
 }
Esempio n. 15
0
 function get_dari_so($id)
 {
     permissionUser();
     $this->data['pengeluaran'] = $pengeluaran = GetAll('stok_pengeluaran', array('id' => 'where/' . $id))->row_array();
     // $num_rows = getAll($this->table_name)->num_rows();
     // $last_id = ($num_rows>0) ? $this->db->select('id')->order_by('id', 'asc')->get($this->table_name)->last_row()->id : 0;
     // $this->data['last_id'] = ($num_rows>0) ? $last_id+1 : 1;
     $y = date('Y');
     $last_id_year = getValue('no', $this->table_name, array('id' => 'order/desc'));
     $last_id_year = substr($last_id_year, -4);
     if ($y != $last_id_year) {
         $this->db->where('table_name', 'inv')->update('numbersequencetable', array('nextrec' => 1));
     }
     $nextrec = getValue('nextrec', 'numbersequencetable', array('table_name' => 'where/inv'));
     $this->data['last_id'] = !empty($nextrec) ? $nextrec : 1;
     $so_id = $this->data['so_id'] = explode(',', $pengeluaran['ref_id']);
     //print_mz(sizeof($so_id));
     $this->data['order'] = $this->main->get_detail_so($so_id[0]);
     $this->data['order_list'] = $this->main->get_list_detail_so($id);
     $this->data['kurensi'] = getAll('kurensi')->result();
     $this->data['metode'] = getAll('metode_pembayaran')->result();
     $this->data['gudang'] = getAll('gudang')->result();
     $this->data['options_kontak'] = options_row('main', 'get_kontak', 'id', 'title', '-- Pilih Customer --');
     $this->data['pajak_komponen'] = getAll('pajak_komponen', array(), array('!=id' => '1'))->result();
     $this->data['ppn_val'] = getValue('value', 'pajak_value', array('id' => 'where/1'));
     $this->data['pph22_val'] = getValue('value', 'pajak_value', array('id' => 'where/2'));
     $this->data['pph23_val'] = getValue('value', 'pajak_value', array('id' => 'where/3'));
     $this->data['bank'] = getAll('bank')->result();
     if (!empty($this->data['order']->result())) {
         $this->load->view($this->module . '/' . $this->file_name . '/dari_so', $this->data);
     } else {
         $this->load->view($this->module . '/' . $this->file_name . '/so_kosong', $this->data);
     }
 }
Esempio n. 16
0
 function index()
 {
     permissionUser();
     $this->data['options_jenis_satuan'] = options_row('satuan', 'get_jenis_satuan', 'id', 'title', '-- Pilih Satuan Dasar --');
     $this->_render_page($this->module . '/' . $this->file_name, $this->data);
 }
Esempio n. 17
0
 function load_kontak()
 {
     $this->data['options_kontak'] = options_row('main', 'get_kontak', 'id', 'title', '-- Pilih Supplier --');
     $this->load->view('master/kontak/load_kontak', $this->data);
 }