function tambahKendaraan($params) { $bresult = $this->db->insert('Kendaraan', $params); return array($bresult, $id = $this->db->insert_id(), INSERT_iFLAG($bresult)); }
function tambahJenis($params) { $bresult = $this->db->insert('Jenis', $params); return array($bresult, $id = $this->db->insert_id(), INSERT_iFLAG($bresult)); }
function add_so_header($params, $no_so = null) { if ($no_so) { $this->db->where('NO_BUKTI', $no_so); $bresult = $this->db->update($this->prefix . '_SO..SOT01A', $params); if ($bresult) { return array(True, $id = $no_so, null); } else { return array(False, null, lang('message_error_update') . ' SOT01A'); } } else { $bresult = $this->db->insert($this->prefix . '_SO..SOT01A', $params); return array($bresult, $id = $params['NO_BUKTI'], INSERT_iFLAG($bresult)); } }