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

class Po_loc extends Trxpo {
	
	function __construct()
	{
		parent::__construct();
		
		$this->pmodul = 'trxpo';
		$this->modul = 'po_loc';
		
		$this->title = 'PURCHASE ORDER LOCAL';
		$this->po_type = '3'; // po local
		$this->tp_barang = '1';
		
		$this->tbl = 'pur_pohdr';		
		$this->tbl2 = 'pur_podet';
		$this->tbl3 = 'mst_in_type';
		$this->tbl4 = 'mst_perusahaan';
		$this->tbl5 = 'mst_barang';
		$this->tbl6 = 'jenis_dok';
		
		$this->pk = 'po_id';
		$this->pk2 = 'id';
		$this->pk3 = 'matin_type';
		$this->pk4 = 'KdPrshn';
		$this->pk5 = 'KdBarang';
		$this->pk6 = 'KdJnsDok';
		$this->pkh = 'matin_no';
		
		$this->load->model($this->pmodul.'/'.$this->pmodul.'_mdl','pmdl');
		$this->load->model($this->modul.'_mdl','mdl');
		
	}
}