本文整理汇总了PHP中succ_msg函数的典型用法代码示例。如果您正苦于以下问题:PHP succ_msg函数的具体用法?PHP succ_msg怎么用?PHP succ_msg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了succ_msg函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: tambah_stok
public function tambah_stok()
{
$param = $this->input->post();
$user = $this->session->userdata('astrosession');
$this->load->library('form_validation');
$this->form_validation->set_rules('product_code', 'Produk', 'trim|required|xss_clean');
$this->form_validation->set_rules('in', 'Qty', 'trim|required|xss_clean');
if ($this->form_validation->run() == FALSE) {
echo "0|" . warn_msg(validation_errors());
} else {
$produk = $this->mp->get_detail_product($param['product_code']);
$param['date'] = date('Y-m-d');
$param['status'] = 'input';
$param['reference'] = '';
$param['out'] = 0;
$param['description'] = 'Penambahan Stok' . $produk['name'];
$param['userlog'] = date('Y-m-d H:i:s');
$param['operator'] = $user[0]->uname;
$param['rak_code'] = $produk['gudang_code'];
$save = $this->mp->write('atombizz_warehouses_stok', $param);
if ($save == TRUE) {
echo "1|" . succ_msg("Stok Produk berhasil ditambahkan.");
} else {
echo "0|" . err_msg("Gagal menambahkan stok produk, periksa kembali masukan Anda");
}
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:27,代码来源:input.php
示例2: proses_claim
public function proses_claim()
{
$param = $this->input->post();
$config = $this->config->item('astro');
$operator = $this->session->userdata('astrosession');
$this->load->library('form_validation');
$this->form_validation->set_rules('tgl_awal', 'Tgl Awal', 'trim|required|xss_clean');
$this->form_validation->set_rules('tgl_akhir', 'Tgl Akhir', 'trim|required|xss_clean');
if ($this->form_validation->run() == FALSE) {
echo "0|" . warn_msg(validation_errors());
} else {
if ($param['bank'] != 'all' && $param['bank'] != '') {
$where2 = 'AND note =' . $this->mr->protect($param['bank']);
} else {
$where2 = '';
}
$where = "date BETWEEN " . $this->mr->protect($param['tgl_awal']) . " AND " . $this->mr->protect($param['tgl_akhir']);
$replace = $this->mr->replace('penjualan', array('debet-claimed' => 'yes'), $where);
if ($replace) {
echo '1|' . succ_msg('Berhasil merubah status pembayaran debet');
} else {
echo '1|' . err_msg('Gagal, melakukan perubahan');
}
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:25,代码来源:claim.php
示例3: delete
public function delete($value = '')
{
$param = $this->input->post();
$delete = $this->mb->delete('atombizz_inventaris', array('id' => $param['id']));
if ($delete) {
echo '1|' . succ_msg('Berhasil menghapus data.');
} else {
echo '0|' . err_msg('Gagal menghapus data.');
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:10,代码来源:barang.php
示例4: kirim_barang
public function kirim_barang()
{
$param = $this->input->post();
$replace = $this->mp->replace('atombizz_selling', array('status_pengiriman' => '1'), array('id' => $param['id']));
if ($replace) {
echo '1|' . succ_msg('Berhasil merubah status pengiriman barang.');
} else {
echo '0|' . err_msg('Gagal merubah data.');
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:10,代码来源:pengiriman.php
示例5: delete
public function delete()
{
$id = $this->input->post('id');
$where = array('id' => $id);
$delete = $this->mb->delete('atombizz_brand_converter', $where);
if ($delete) {
echo "1|" . succ_msg("Master Konversi berhasil dihapus.");
} else {
echo "0|" . err_msg("Gagal, coba periksa lagi inputan anda.");
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:11,代码来源:brand.php
示例6: checkin_guest
public function checkin_guest()
{
$param = $this->input->post();
$data = array('room_number' => $param['cek_room'], 'status' => 'checkin');
$where = array('id' => $param['cek_id']);
$update = $this->mr->replace('atombizz_tmp_use_facilities', $data, $where);
if ($update) {
echo succ_msg('Pelanggan berhasil cek in.');
} else {
echo err_msg('Pelanggan tidak dapat cek in.');
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:12,代码来源:resepsionis.php
示例7: save
public function save()
{
$user = $this->session->userdata('astrosession');
$config = $this->config->item('astro');
$param = $this->input->post();
$masuk = $keluar = 0;
if ($param['status'] == 'in') {
$masuk = $param['qty'];
} else {
$keluar = $param['qty'];
}
$stok = array('date' => date('Y-m-d'), 'status' => $param['status'], 'in' => $masuk, 'out' => $keluar, 'description' => $param['keterangan'], 'userlog' => date('Y-m-d H:i:s'), 'operator' => $user[0]->uname, 'product_code' => $param['product_code'], 'dept' => $config['bas_code_dept']);
$save = $this->mi->write('atombizz_inventaris_stok', $stok);
if ($save) {
echo '1|' . succ_msg('Berhasil menyimpan pencatatan stok barang.');
} else {
echo '0|' . err_msg('Gagal menyimpan pencatatan stok barang.');
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:19,代码来源:inventaris.php
示例8: delete
public function delete()
{
$id = $this->input->post('id');
$where = array('id' => $id);
$delete = $this->msp->delete('atombizz_suppliers', $where);
if ($delete == TRUE) {
echo "1|" . succ_msg("Suplier berhasil dihapus.");
} else {
echo "0|" . err_msg("Gagal, coba periksa lagi inputan anda.");
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:11,代码来源:suplier.php
示例9: proses_retur_in
public function proses_retur_in()
{
$basmalah = $this->config->item('astro');
$userlog = date('Y-m-d H:i:s');
$param = $this->input->post();
$reference = $this->input->post('reference');
$where = array('reference' => $reference);
$keterangan = 'Retur Masuk dengan referensi no ' . $reference;
$data = $this->mp->find('atombizz_retur_internal_tmp', $where);
$nominal_retur_in = 0;
foreach ($data->result_array() as $das) {
$arr_detail[] = array('reference' => $reference, 'product_id' => $das['product_id'], 'product_code' => $das['product_code'], 'product_name' => $das['product_name'], 'quantity' => $das['quantity'], 'hpp' => $das['hpp']);
$nominal_retur_in += $das['sub_total'];
$arr_stok[] = array('date' => $param['date'], 'status' => 'retur in', 'reference' => $reference, 'in' => $das['quantity'], 'out' => 0, 'description' => $keterangan, 'userlog' => $userlog, 'operator' => $param['operator'], 'rak_code' => 'retur', 'product_code' => $das['product_code'], 'dept' => $basmalah['bas_code_dept']);
}
$arr_retur_in = array('reference' => $reference, 'date' => $param['date'], 'operator' => $param['operator'], 'total' => $param['total_akhir'], 'urut' => $param['urut'], 'dept' => $basmalah['bas_code_dept'], 'userlog' => $userlog);
$save_items = $this->mp->write_batch('atombizz_retur_internal_detail', $arr_detail);
if ($save_items == TRUE) {
$save_stok = $this->mp->write_batch('atombizz_warehouses_stok', $arr_stok);
if ($save_stok == TRUE) {
$save_beli = $this->mp->write('atombizz_retur_internal', $arr_retur_in);
// echo $this->db->last_query();exit;
if ($save_beli == TRUE) {
$where = array('reference' => $reference);
$delete = $this->mp->delete('atombizz_retur_internal_tmp', $where);
if ($delete > 0) {
echo "1|" . succ_msg("Berhasil menambahkan data retur internal.");
}
} else {
echo "0|" . err_msg("Gagal menambahkan data retur internal.");
}
} else {
echo "0|" . err_msg("Gagal mengurangi data stok produk.");
}
} else {
echo "0|" . err_msg("Gagal menambahkan data retur internal detail.");
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:38,代码来源:retur_internal.php
示例10: proses_pembelian
//.........这里部分代码省略.........
$arr_stok[] = array('date' => $param['date'], 'status' => 'pembelian', 'reference' => $reference, 'in' => $qty, 'out' => 0, 'description' => $keterangan, 'userlog' => $userlog, 'operator' => $param['operator'], 'rak_code' => $das['warehouse_id'], 'product_code' => $das['product_code'], 'dept' => $basmalah['bas_code_dept']);
$arr_hpp[] = array('code' => $das['product_code'], 'cost' => $hpp);
}
// print_r($arr_hpp);exit;
if ($param['cara'] == 'cash') {
$arr_kas = array('kode' => 'PB', 'no_referensi' => $reference, 'tanggal' => $param['date'], 'keterangan' => $keterangan, 'person' => $param['supplier_code'], 'dept' => $basmalah['bas_code_dept'], 'valid' => 'yes');
//kas
$arr_kas['debit'] = 0;
$arr_kas['kredit'] = $param['total'];
$arr_kas['no_akun'] = '110000';
$kas_acc = $this->mp->write('atombizz_accounting_buku_besar', $arr_kas);
//potongan
$arr_kas['debit'] = 0;
$arr_kas['kredit'] = $param['nom_reg_1'];
$arr_kas['no_akun'] = '340000';
$potongan_acc = $this->mp->write('atombizz_accounting_buku_besar', $arr_kas);
//pembelian
$arr_kas['debit'] = $param['subtotal'];
$arr_kas['kredit'] = 0;
$arr_kas['no_akun'] = '130000';
$save_acc = $this->mp->write('atombizz_accounting_buku_besar', $arr_kas);
} else {
if ($param['cara'] == 'credit') {
$htg = array('code' => $reference, 'jatuh_tempo' => $param['jatuh_tempo'], 'status' => 0);
$save_htg = $this->mp->write('atombizz_hutang', $htg);
if ($save_htg == TRUE) {
$arr_htg = array('kode' => 'PB', 'no_referensi' => $reference, 'tanggal' => $param['date'], 'keterangan' => $keterangan, 'person' => $param['supplier_code'], 'dept' => $basmalah['bas_code_dept'], 'valid' => 'yes');
//kas
$arr_htg['debit'] = 0;
$arr_htg['kredit'] = $param['dp'];
$arr_htg['no_akun'] = '110000';
$kas_acc = $this->mp->write('atombizz_accounting_buku_besar', $arr_htg);
//potongan
$arr_htg['debit'] = 0;
$arr_htg['kredit'] = $param['nom_reg_1'];
$arr_htg['no_akun'] = '340000';
$potongan_acc = $this->mp->write('atombizz_accounting_buku_besar', $arr_htg);
//pembelian
$arr_htg['debit'] = $param['subtotal'];
$arr_htg['kredit'] = 0;
$arr_htg['no_akun'] = '130000';
$pembelian_acc = $this->mp->write('atombizz_accounting_buku_besar', $arr_htg);
//hutang
$arr_htg['debit'] = 0;
$arr_htg['kredit'] = $param['total'] - $param['dp'];
$arr_htg['no_akun'] = '510000';
$arr_htg['faktur'] = $reference;
$arr_htg['kode'] = 'HTG';
$save_acc = $this->mp->write('atombizz_accounting_buku_besar', $arr_htg);
} else {
echo "0|" . err_msg("Error, hubungi teknisi.");
}
}
}
if ($save_acc) {
$save_items = $this->mp->write_batch('atombizz_purchase_items', $arr_detail);
if ($save_items == TRUE) {
$save_stok = $this->mp->write_batch('atombizz_warehouses_stok', $arr_stok);
if ($save_stok == TRUE) {
$save_hpp = $this->mp->replace_batch('atombizz_product', $arr_hpp, 'code');
// echo $this->db->last_query();exit;
if ($save_hpp == TRUE) {
unset($param['jatuh_tempo']);
unset($param['cara']);
unset($param['dp']);
$param['dept'] = $basmalah['bas_code_dept'];
$save_beli = $this->mp->write('atombizz_purchases', $param);
if ($save_beli == TRUE) {
$where = array('reference_no' => $reference);
$delete = $this->mp->delete('atombizz_tmp_detail_purchases', $where);
if ($delete > 0) {
$where = array('code' => $param['supplier_code']);
$sql_ins['last_active'] = $param['date'];
$sql_ins['last_num'] = $this->mp->get_last_num($param['supplier_code']);
$insert = $this->mp->replace('atombizz_suppliers', $sql_ins, $where);
if ($insert == TRUE) {
echo "1|" . succ_msg("Berhasil, menambahkan data pembelian.");
} else {
echo "0|" . err_msg("Error, hubungi teknisi.");
}
} else {
echo "0|" . err_msg("Error, hubungi teknisi.");
}
} else {
echo "0|" . err_msg("Error, hubungi teknisi.");
}
} else {
echo "0|" . err_msg("Error, hubungi teknisi. -hpp");
}
} else {
echo "0|" . err_msg("Error, hubungi teknisi.");
}
} else {
echo "0|" . err_msg("Error, hubungi teknisi.");
}
} else {
echo "0|" . err_msg("Error, hubungi teknisi.");
}
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:101,代码来源:pembelian.php
示例11: delete
public function delete()
{
$id = $this->input->post('id');
$nik = $this->mm->get_code($id);
$where = array('id' => $id);
$delete = $this->mm->delete('member', $where);
if ($delete) {
echo "1|" . succ_msg("Member berhasil dihapus.");
} else {
echo "0|" . err_msg("Gagal, coba periksa lagi inputan anda.");
}
}
开发者ID:ahmadsm,项目名称:iwakkoi,代码行数:12,代码来源:member.php
示例12: opname_adjust
public function opname_adjust()
{
$param = $this->input->post();
$basmalah = $this->config->item('astro');
$this->load->library('form_validation');
$this->form_validation->set_rules('description', 'Keterangan', 'trim|required|xss_clean');
$this->form_validation->set_rules('approved_by', 'Supervisor', 'trim|required|xss_clean');
if ($this->form_validation->run() == FALSE) {
//tidak memenuhi validasi
echo '0|' . warn_msg(validation_errors());
} else {
//save data
$reference = $param['reference'];
unset($param['reference']);
$where = array('reference' => $reference);
$param['rule'] = 'confirmed';
$update = $this->mak->replace('atombizz_stock_opname', $param, $where);
$date = date('Y-m-d H:i:s');
if ($update == TRUE) {
$data = $this->mak->find('view_stock_opname', $where);
foreach ($data->result_array() as $das) {
if ($das['status'] == 'kurang') {
$keluar = $das['difference'];
$masuk = 0;
} elseif ($das['status'] == 'lebih') {
$keluar = 0;
$masuk = $das['difference'];
} elseif ($das['status'] == 'cocok') {
$keluar = $masuk = 0;
}
$arr_stok[] = array('status' => 'opname', 'userlog' => $date, 'reference' => $das['reference'], 'date' => date('Y-m-d'), 'in' => $masuk, 'out' => $keluar, 'description' => 'Opname confirmation : ' . $param['description'], 'operator' => $param['approved_by'], 'rak_code' => $das['rak_code'], 'product_code' => $das['product_code']);
}
$save = $this->mak->write_batch('atombizz_warehouses_stok', $arr_stok);
if ($save == TRUE) {
echo "1|" . succ_msg("Berhasil, menyesuaikan stok opname.");
} else {
echo '0|' . err_msg('Gagal, menyesuaikan stok opname.');
}
} else {
echo '0|' . err_msg('Gagal, update data approve.');
}
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:43,代码来源:opname.php
示例13: hapus_data
public function hapus_data()
{
$param = $this->input->post();
$delete = $this->mp->delete('atombizz_employee_position', array('id' => $param['id']));
if ($delete) {
$delete_acc = $this->mp->delete('atombizz_employee_access', array('position_id' => $param['id']));
if ($delete_acc) {
echo '1|' . succ_msg('Berhasil menghapus Posisi.');
} else {
echo '0|' . err_msg('Gagal menghapus Posisi.');
}
} else {
echo '0|' . err_msg('Gagal menghapus Posisi.');
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:15,代码来源:posisi.php
示例14: delete
public function delete()
{
$id = $this->input->post('id');
$where = array('id' => $id);
$delete = $this->mp->delete('atombizz_customers', $where);
if ($delete) {
echo "1|" . succ_msg("Pelanggan berhasil dihapus.");
} else {
echo "0|" . err_msg("Gagal, coba periksa lagi inputan anda.");
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:11,代码来源:pelanggan.php
示例15: proses_retur_out
public function proses_retur_out()
{
$basmalah = $this->config->item('astro');
$userlog = date('Y-m-d H:i:s');
$param = $this->input->post();
$reference = $this->input->post('reference');
$where = array('reference' => $reference);
$keterangan = 'Retur Keluar dengan referensi no ' . $reference;
$data = $this->mp->find('view_tmp_retur_out', $where);
$nominal_retur_out = 0;
foreach ($data->result_array() as $das) {
$arr_detail[] = array('reference' => $reference, 'product_id' => $das['product_id'], 'product_code' => $das['product_code'], 'product_name' => $das['product_name'], 'quantity' => $das['quantity'], 'hpp' => $das['hpp'], 'description' => $das['description'], 'brand_code' => $das['brand_code'], 'unit' => $das['unit']);
$nominal_retur_out += $das['sub_total'];
$qty = $das['quantity'];
$unit = $das['unit'];
//brand konversi stok
if ($das['brand_code'] != '') {
$query = $this->mp->find('atombizz_brand_converter', array('product_code' => $das['product_code'], 'code' => $das['brand_code']));
$konv_brand = $query->row();
$qty = $das['quantity'] * $konv_brand->qty_convertion;
$unit = $konv_brand->satuan_convertion;
}
//konversi satuan terkecil
$konv_unit = unit_converter($qty, $unit);
$data_konv = json_decode($konv_unit);
$qty = $data_konv->qty;
$unit = $data_konv->satuan;
$arr_stok[] = array('date' => $param['date'], 'status' => 'retur out', 'reference' => $reference, 'in' => 0, 'out' => $qty, 'description' => $keterangan, 'userlog' => $userlog, 'operator' => $param['operator'], 'rak_code' => $das['gudang_code'], 'product_code' => $das['product_code'], 'dept' => $basmalah['bas_code_dept']);
}
// print_r($arr_stok);exit;
$arr_retur_out = array('reference' => $reference, 'supplier_code' => $param['supplier_code'], 'supplier_name' => $param['supplier_name'], 'date' => $param['date'], 'operator' => $param['operator'], 'total' => $param['total_akhir'], 'urut' => $param['urut'], 'dept' => $basmalah['bas_code_dept'], 'userlog' => $userlog);
$save_items = $this->mp->write_batch('atombizz_retur_out_detail', $arr_detail);
if ($save_items == TRUE) {
$save_stok = $this->mp->write_batch('atombizz_warehouses_stok', $arr_stok);
if ($save_stok == TRUE) {
$save_beli = $this->mp->write('atombizz_retur_out', $arr_retur_out);
// echo $this->db->last_query();exit;
if ($save_beli == TRUE) {
$where = array('reference' => $reference);
$delete = $this->mp->delete('atombizz_retur_out_tmp', $where);
if ($delete > 0) {
$kode = 'FRO';
$data = array('kode' => $kode, 'no_referensi' => $reference, 'tanggal' => $param['date'], 'keterangan' => $keterangan, 'dept' => $basmalah['bas_code_dept'], 'person' => $param['supplier_code'], 'valid' => 'yes');
//retur
$data['debit'] = 0;
$data['kredit'] = $param['total_akhir'];
$data['no_akun'] = '330000';
$kas_acc = $this->mp->write('atombizz_accounting_buku_besar', $data);
//hutang
$data['kredit'] = 0;
$data['debit'] = $param['total_akhir'];
$data['no_akun'] = '510000';
$data['faktur'] = $reference;
$data['kode'] = 'HTG';
$save_acc = $this->mp->write('atombizz_accounting_buku_besar', $data);
if ($save_acc == TRUE) {
echo "1|" . succ_msg("Berhasil, menambahkan data retur keluar.");
} else {
echo "0|" . err_msg("Gagal, menambahkan data accounting persediaan.");
}
}
} else {
echo "0|" . err_msg("Gagal, menambahkan data retur keluar.");
}
} else {
echo "0|" . err_msg("Gagal, mengurangi data stok bahan.");
}
} else {
echo "0|" . err_msg("Gagal, menambahkan data retur keluar detail.");
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:71,代码来源:retur.php
示例16: proses_spoil
public function proses_spoil()
{
$user = $this->session->userdata('astrosession');
$basmalah = $this->config->item('astro');
$userlog = date('Y-m-d H:i:s');
$param = $this->input->post();
$reference = $this->input->post('reference');
echo $reference;
$where = array('reference' => $reference);
$keterangan = 'Spoil dengan referensi no ' . $reference;
$data = $this->mp->find('view_tmp_spoil', $where);
$nominal_retur_out = 0;
foreach ($data->result_array() as $das) {
$arr_detail[] = array('reference' => $reference, 'kode' => $das['kode'], 'nama' => $das['nama'], 'qty' => $das['qty'], 'hpp' => $das['hpp'], 'total' => $das['total'], 'tgl' => $das['tgl'], 'status' => 'produk', 'keterangan' => $das['keterangan']);
$nominal_retur_out += $das['total'];
$arr_stok[] = array('date' => $param['tgl'], 'status' => 'spoil', 'reference' => $reference, 'in' => 0, 'out' => $das['qty'], 'description' => $keterangan, 'userlog' => $userlog, 'operator' => $user[0]->uname, 'rak_code' => $das['gudang_code'], 'product_code' => $das['kode'], 'dept' => $basmalah['bas_code_dept']);
$arr_stok[] = array('date' => $param['tgl'], 'status' => 'spoil', 'reference' => $reference, 'in' => $das['qty'], 'out' => 0, 'description' => $keterangan, 'userlog' => $userlog, 'operator' => $user[0]->uname, 'rak_code' => 'spoil', 'product_code' => $das['kode'], 'dept' => $basmalah['bas_code_dept']);
}
$arr_retur_out = array('reference' => $reference, 'tgl' => $param['tgl'], 'total' => $nominal_retur_out, 'urut' => $param['urut']);
$save_items = $this->mp->write_batch('atombizz_spoil_detail', $arr_detail);
if ($save_items == TRUE) {
$save_stok = $this->mp->write_batch('atombizz_warehouses_stok', $arr_stok);
if ($save_stok == TRUE) {
$save_beli = $this->mp->write('atombizz_spoil', $arr_retur_out);
if ($save_beli == TRUE) {
$where = array('reference' => $reference);
$delete = $this->mp->delete('atombizz_spoil_tmp', $where);
if ($delete > 0) {
//persediaan
$jurnal = array('kode' => 'spoil', 'no_referensi' => $reference, 'tanggal' => $param['tgl'], 'keterangan' => 'Spoil stok stok_produk dengan referensi ' . $reference, 'no_akun' => '130000', 'debit' => 0, 'kredit' => $nominal_retur_out, 'person' => $user[0]->uname, 'valid' => 'yes');
$save_acc = $this->mp->write('atombizz_accounting_buku_besar', $jurnal);
if ($save_acc) {
echo "1|" . succ_msg("Berhasil, menambahkan data spoil.");
} else {
echo "0|" . err_msg("Gagal, menambahkan data spoil.");
}
}
} else {
echo "0|" . err_msg("Gagal, menambahkan data spoil.");
}
} else {
echo "0|" . err_msg("Gagal, mengurangi data stok bahan.");
}
} else {
echo "0|" . err_msg("Gagal, menambahkan data spoil detail.");
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:47,代码来源:spoil.php
示例17: delete_rekening
public function delete_rekening()
{
// $access = strtolower($this->module.'.'.__class__.'.'.__function__);
// $this->permission->check_permission($access);
$param = $this->input->post();
$delete = $this->mma->delete('atombizz_accounting_master_akun', $param);
if ($delete > 0) {
echo "1|" . succ_msg("Data rekekning berhasil dihapus. -delete");
} else {
echo "0|" . err_msg("Gagal, data rekekning belum dihapus. -delete");
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:12,代码来源:rekening.php
示例18: proses
public function proses()
{
$param = $this->input->post();
$basmalah = $this->config->item('astro');
// print_r($param);exit;
$dept = $basmalah['bas_code_dept'];
$userlog = date('Y-m-d H:i:s');
$reference = $param['reference'];
$where = array('reference' => $reference);
$total = 0;
$data = $this->mp->find('atombizz_retur_in_tmp', $where);
foreach ($data->result_array() as $das) {
$arr_detail[] = array('reference' => $das['reference'], 'product_code' => $das['product_code'], 'product_name' => $das['product_name'], 'quantity' => $das['quantity'], 'hpp' => $das['hpp']);
$arr_stok[] = array('date' => $das['date'], 'status' => 'retur_in', 'reference' => $das['reference'], 'in' => $das['quantity'], 'out' => 0, 'description' => 'Retur masuk dengan nota ' . $das['nota'], 'userlog' => $userlog, 'operator' => $das['operator'], 'rak_code' => 'retur', 'product_code' => $das['product_code'], 'dept' => $dept);
$arr_stok_out[] = array('date' => $das['date'], 'status' => 'retur_in', 'reference' => $das['reference'], 'in' => 0, 'out' => $das['quantity'], 'description' => 'Retur masuk dengan nota ' . $das['nota'], 'userlog' => $userlog, 'operator' => $das['operator'], 'rak_code' => $this->mp->get_gudang_code($das['product_code']), 'product_code' => $das['product_code'], 'dept' => $dept);
$total += $das['quantity'] * $das['hpp'];
}
$arr_retur_in = array('reference' => $param['reference'], 'nota' => $param['nota'], 'date' => $param['date'], 'total' => $total, 'userlog' => $userlog, 'operator' => $param['operator'], 'branch_code' => $basmalah['bas_branch_code'], 'branch_name' => $basmalah['bas_branch_name'], 'dept' => $dept, 'urut' => $param['urut'], 'updated_by' => $param['operator']);
$ins_stok_retur = $this->mp->write_batch('atombizz_warehouses_stok', $arr_stok);
if ($ins_stok_retur) {
$ins_stok_retur = $this->mp->write_batch('atombizz_warehouses_stok', $arr_stok_out);
if ($ins_stok_retur) {
$ins_retur = $this->mp->write('atombizz_retur_in', $arr_retur_in);
if ($ins_retur) {
$ins_detail = $this->mp->write_batch('atombizz_retur_in_detail', $arr_detail);
if ($ins_detail) {
$del_tmp = $this->mp->delete('atombizz_retur_in_tmp', $where);
if ($del_tmp) {
echo succ_msg('Proses retur in berhasil.');
} else {
echo err_msg('Gagal menghapus produk di temporary.');
}
} else {
echo err_msg('Gagal menyimpan data detail.');
}
} else {
echo err_msg('Gagal menyimpan data retur.');
}
} else {
echo err_msg('Gagal menyimpan data retur.');
}
} else {
echo err_msg('Gagal menyimpan data stok.');
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:45,代码来源:retur.php
示例19: hapus_data
public function hapus_data()
{
$param = $this->input->post();
$kasbon = $this->mp->delete('atombizz_kasbon', array('id' => $param['id']));
if ($kasbon) {
$kasbon = $this->mp->delete('atombizz_accounting_journal', array('id' => $param['id']));
}
if ($delete) {
echo "1|" . succ_msg("Kasbon berhasil dihapus.");
} else {
echo "0|" . err_msg("Gagal menghapus Transaksi.");
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:13,代码来源:kasbon.php
示例20: hapus_data
public function hapus_data()
{
$param = $this->input->post();
$data = $this->mp->ambil_data($param);
$delete_spec = $this->mp->delete('atombizz_product_specification', array('code' => $data->code));
if ($delete_spec) {
$delete = $this->mp->delete('atombizz_product', array('id' => $param['id']));
if ($delete) {
echo "1|" . succ_msg("Produk/Layanan berhasil dihapus.");
} else {
echo "0|" . err_msg("Gagal menghapus produk/layanan.");
}
} else {
echo "0|" . err_msg("Gagal menghapus spesifikasi produk.");
}
}
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:16,代码来源:gudang.php
注:本文中的succ_msg函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论