public function batal($idsharingproduct) { $sharingproduct = $this->orm->sharingproduct->where('idsharingproduct', $idsharingproduct); $sharingproduct->delete(); Message::_set(TRUE, 'Batal Sharing Product Berhasil', 'Gagal'); redirect('sharing/sharing'); }
public function delete($idpackage = null) { if ($idpackage != null) { $package = $this->orm->package->where('idpackage', $idpackage); $package->delete(); Message::_set(TRUE, 'Hapus Data Package Berhasil', 'Hapus Data Package Gagal'); } redirect('package/master_package'); }
public function delete() { $idrefgudang = $this->input->post('id', true); if ($idrefgudang != null) { $refgudang = $this->orm->refgudang->where('idrefgudang', $idrefgudang); $ress = $refgudang->delete(); Message::_set($ress, 'Hapus Data Pelanggan Berhasil', 'Hapus Data Master Pelanggan Gagal'); redirect('masterdata/mastergudang'); } }
public function delete($idpelanggan = null) { $idpelanggan = $this->input->post('id'); if ($idpelanggan != null) { $pelanggan = $this->orm->pelanggan->where('idpelanggan', $idpelanggan); $ress = $pelanggan->delete(); $result = $ress == TRUE ? array('response' => 'success', 'msg' => 'Hapus Data Pelanggan Berhasil') : array('response' => 'error', 'msg' => 'Maav Hapus Data Pelanggan Gagal'); // echo json_encode($result); Message::_set(TRUE, 'Hapus Data Pelanggan Berhasil', 'Hapus Data Master Pelanggan Gagal'); redirect('masterdata/masterpelanggan'); } }
public function rollback($idquotationsales = null) { if ($idquotationsales != null) { $dataUpdateQuotation = array('idrefstatus' => 2); $this->quotationsales->update($idquotationsales, $dataUpdateQuotation); Message::_set(TRUE, 'Mengembalikan Data Quotation Berhasil', 'Mengembalikan Data Quotation Gagal'); } redirect('pemesanan/po_pemesanan'); }
public function delete($idpengadaan = null) { Account::_valLogin(); if ($idpengadaan != null) { $pengadaan = $this->orm->pengadaan->where('idpengadaan', $idpengadaan); $pengadaan->delete(); $pengadaandetail = $this->orm->pengadaandetail->where('idpengadaan', $idpengadaan); $pengadaandetail->delete(); Message::_set(TRUE, 'Hapus Data Pengadaan Berhasil', 'Hapus Data Pengadaan Gagal'); } redirect('transaksi/pengadaan'); }
public function prosesreject($idquotationsales = null) { if ($idquotationsales == null) { //do nothing $redirect = 'pemesanan/do_pemesanan'; } else { $dataUpdateQuotation = array('idrefstatus' => 9); $this->quotationsales->update($idquotationsales, $dataUpdateQuotation); Message::_set($idquotationsales != null ? TRUE : FALSE, 'Edit Data Delivery Order Berhasil', 'Edit Data Delivery Order Gagal'); $redirect = 'pemesanan/do_pemesanan'; } redirect($redirect); }
public function delete() { $idrefbarang = $this->input->post('id', true); if ($idrefbarang != null) { $refbarang = $this->orm->refbarang->where('idrefbarang', $idrefbarang); $ress = $refbarang->delete(); $result = $ress == TRUE ? array('response' => 'success', 'msg' => 'Hapus Data Barang Berhasil') : array('response' => 'error', 'msg' => 'Maav Hapus Data Barang Gagal'); //echo json_encode($result); Message::_set(TRUE, 'Hapus Data Master Barang Berhasil', 'Hapus Data Master Barang Gagal'); redirect('masterdata/masterbarang'); } }
public function batal($idquotationsales = null) { if ($idquotationsales != null) { //$quotation = $this->orm->quotationsales->where('idquotationsales', $idquotationsales); //$quotation->update(array('')); $dataUpdateQuotation = array('idrefstatus' => 3); $this->quotationsales->update($idquotationsales, $dataUpdateQuotation); Message::_set(TRUE, 'Hapus Data quotation Berhasil', 'Hapus Data quotation Gagal'); } redirect('quotation/quotation'); }
public function delete($iddeliveryorder = null) { /*Account::_valLogin(); if ($iddeliveryorder != null) { $deliveryorder = $this->orm->deliveryorder->where('iddeliveryorder', $iddeliveryorder); $deliveryorder->delete(); $deliveryorderdetail = $this->orm->deliveryorderdetail->where('iddeliveryorder', $iddeliveryorder); $deliveryorderdetail->delete(); Message::_set(TRUE, 'Hapus Data delivery Order Berhasil', 'Hapus Data delivery Order Gagal'); } redirect('transaksi/deliveryorder');*/ if ($idquotationsales != null) { $quotation = $this->orm->quotationsales->where('idquotationsales', $idquotationsales); $quotation->delete(); $quotationdetail = $this->orm->quotationsalesdetail->where('idquotationsales', $idquotationsales); $quotationdetail->delete(); Message::_set(TRUE, 'Hapus Data Delivery Order Berhasil', 'Hapus Data Delivery Order Gagal'); } redirect('transaksi/deliveryorder'); }