<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require APPPATH."modules/trxout/controllers/trxout.php";

class Wipout extends Trxout {
	
	function __construct()
	{
		parent::__construct();
		
		$this->pmodul = 'trxout';
		$this->modul = 'wipout';
		
		$this->title = 'OUTGOING WIP';
		$this->mat_type = '11';
		$this->tp_barang = '11'; 
		
		$this->tbl = 'mat_outhdr_sub';		
		$this->tbl2 = 'mat_outdet_sub';
		// $this->tbl2 = 'mat_bomhdr_wip_sub';
		$this->tbl3 = 'mst_out_type';
		$this->tbl4 = 'mst_perusahaan';
		$this->tbl5 = 'mst_barang';
		// $this->tbl5 = 'mat_bomhdr_wip_sub';
		$this->tbl6 = 'jenis_dok';
		
		$this->pk = 'matout_id';
		$this->pk2 = 'no_ref';
		$this->pk3 = 'matout_type';
		$this->pk4 = 'KdPrshn';
		$this->pk5 = 'KdBarang';
		// $this->pk5 = 'bom_id';
		$this->pk6 = 'KdJnsDok';
		$this->pkh = 'matout_no';
		
		$this->load->model($this->pmodul.'/'.$this->pmodul.'_mdl','pmdl');
		$this->load->model($this->modul.'_mdl','mdl');
		
	}
}