opname barang: bug stok sisa 2
This commit is contained in:
+1
-2
@@ -15,8 +15,7 @@ $(document).ready(function(){
|
||||
loadSidebar();
|
||||
IndexJS.loading();
|
||||
setInterval(() => {
|
||||
if ($('#ChartB').length) return false;
|
||||
IndexJS.load_chart();
|
||||
if ($('#ChartB').length > 0) IndexJS.load_chart();
|
||||
}, 600000);
|
||||
if ('undefined' !== typeof qz) launchQZ();
|
||||
});
|
||||
|
||||
+57
-69
@@ -16,19 +16,20 @@ var ProdukJS = {
|
||||
KODE: '',
|
||||
|
||||
loading: function(){
|
||||
$('#butFilter').click(function(){this.filter_show();}.bind(this));
|
||||
$('#butFilter').click(() => this.filter_show());
|
||||
this.data_query('tabel-produk');
|
||||
$('#Cari_Produk').keydown(function(e){
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('tabel-produk');
|
||||
}.bind(this));
|
||||
$('#butSearch').click(function(e){
|
||||
this.data_query('tabel-produk');
|
||||
}.bind(this));
|
||||
$('#butAll').click(function(){
|
||||
$('#Cari_Produk').on({
|
||||
keydown: (e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
if (key==13 && e.target.value!='') this.data_query('tabel-produk');
|
||||
},
|
||||
click: () => $('#Cari_Produk').select()
|
||||
});
|
||||
$('#butSearch').click(() => this.data_query('tabel-produk'));
|
||||
$('#butAll').click(() => {
|
||||
$('#Cari_Produk').val('');
|
||||
this.data_query('tabel-produk');
|
||||
}.bind(this));
|
||||
});
|
||||
FoniaJS.setFocus('#Cari_Produk');
|
||||
},
|
||||
|
||||
@@ -36,12 +37,12 @@ var ProdukJS = {
|
||||
new Request({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-filter','Filter_Produk'],
|
||||
onSuccess: function(txt){
|
||||
this.winFilter = FoniaJS.showWindow('Filter', 'Filter Produk Sesuai Grup', txt, 400, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
|
||||
$('#winFilter').find('#butWSimpan').click(function(){this.filter_simpan();}.bind(this));
|
||||
}.bind(this));
|
||||
onSuccess: (txt) => {
|
||||
this.winFilter = FoniaJS.showWindow('Filter', 'Filter Produk Sesuai Grup', txt, 400, [{},{i:'butTutup'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winFilter').find('#butWSimpan').click(() => this.filter_simpan());
|
||||
});
|
||||
$('#Fi_Produk').focus();
|
||||
}.bind(this)
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
@@ -55,14 +56,14 @@ var ProdukJS = {
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-produk','mode='+mode,'InvID='+ID],
|
||||
onSuccess: function(ajson){
|
||||
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Barang', ajson.html, 'xl', [{},{i:'butWBtl',v:'Batal',c:'danger'},{i:'butWSimpan',v:'Simpan',c:'success'}], function(){
|
||||
onSuccess: (ajson) => {
|
||||
this.winDetail = FoniaJS.showWindow('Detail', 'Detail Barang', ajson.html, 'xl', [{},{i:'butWBtl',v:'Batal',c:'danger'},{i:'butWSimpan',v:'Simpan',c:'success'}], () => {
|
||||
$('#winDetail')
|
||||
.find('#butWSimpan').click(function(){this.produk_simpan();}.bind(this)).end()
|
||||
.find('#butWBtl').click(function(){this.produk_batal();}.bind(this));
|
||||
.find('#butWSimpan').click(() => this.produk_simpan()).end()
|
||||
.find('#butWBtl').click(() => this.produk_batal());
|
||||
this.data_query('tabel-kemasan');
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
@@ -70,37 +71,33 @@ var ProdukJS = {
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=restore-detail','InvID='+acell[0]],
|
||||
onSuccess: function(ajson){
|
||||
this.winBRest = FoniaJS.showWindow('BRest', 'Informasi Backup Barang', ajson.html, 'xl', [], function(){
|
||||
this.data_query('restore-tabel');
|
||||
}.bind(this));
|
||||
}.bind(this)
|
||||
onSuccess: (ajson) => {
|
||||
this.winBRest = FoniaJS.showWindow('BRest', 'Informasi Backup Barang', ajson.html, 'xl', [], () => this.data_query('restore-tabel'));
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
produk_restore_select: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan restore data Barang ke versi tanggal : <b>"'+acell[0]+'"</b> ?<br><br><span class="text-danger fw-bold">HARAP KONFIRMASI KEMBALI, TERIMA KASIH!</span>', function(){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan restore data Barang ke versi tanggal : <b>"'+acell[0]+'"</b> ?<br><br><span class="text-danger fw-bold">HARAP KONFIRMASI KEMBALI, TERIMA KASIH!</span>', () => {
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=restore-proses','InvID','MD5Key='+acell[1]],
|
||||
onSuccess: function(adata){
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true){
|
||||
FoniaJS.showInfo('Sukses restore Data Barang ini!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses restore!');
|
||||
}
|
||||
}.bind(this)
|
||||
}
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
produk_restore_form: function(acell, div){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=restore-form','InvID','MD5Key='+acell[1]],
|
||||
onSuccess: function(adata){
|
||||
$(div).html(adata.html);
|
||||
}.bind(this)
|
||||
onSuccess: (adata) => $(div).html(adata.html)
|
||||
}).send();
|
||||
},
|
||||
|
||||
@@ -113,27 +110,27 @@ var ProdukJS = {
|
||||
},
|
||||
|
||||
produk_hapus: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', function(){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save','mode=del','InvID='+acell[0]],
|
||||
onSuccess: function(adata){
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true){
|
||||
this.data_query('tabel-produk');
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}else{
|
||||
FoniaJS.showInfo('Ada masalah dalam proses hapus data!');
|
||||
}
|
||||
}.bind(this)
|
||||
}
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
produk_simpan: function(){
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save','mode','InvID','Grup_InvID','MerekID','Nama_Produk='+encodeURIComponent($('#Nama_Produk').val()),'StokID','NormalID','Harga_Beli','Harga_Tambah','Stok_Min','Stok_Max','Aktif'],
|
||||
onSuccess: function(adata){
|
||||
onSuccess: (adata) => {
|
||||
if (adata.status==true){
|
||||
this.data_query('tabel-produk');
|
||||
FoniaJS.showInfo('Proses simpan data sukses!');
|
||||
@@ -141,32 +138,28 @@ var ProdukJS = {
|
||||
FoniaJS.showInfo('Ada masalah dalam proses simpan data!');
|
||||
}
|
||||
FoniaJS.closeWindow(this.winDetail);
|
||||
}.bind(this)
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
produk_batal: function(){
|
||||
if ($('#mode').val()=='add'){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan batalkan Penambahan Barang ?', function(){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan batalkan Penambahan Barang ?', () => {
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save','mode=cancel','InvID','mode_before=add'],
|
||||
onSuccess: function(){
|
||||
this.data_query('tabel-produk');
|
||||
}.bind(this)
|
||||
onSuccess: () => this.data_query('tabel-produk')
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
}, 'danger');
|
||||
return false;
|
||||
}
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan batalkan Perubahan Detail Barang ?', function(){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan batalkan Perubahan Detail Barang ?', () => {
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=save','mode=cancel','InvID'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.closeWindow(this.winDetail);
|
||||
}.bind(this)
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winDetail)
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
kemasan_batal: function(){
|
||||
@@ -182,7 +175,9 @@ var ProdukJS = {
|
||||
dt.order([0,'desc']);
|
||||
l_row = dt.row(':last');
|
||||
if (!dt.data().count() || l_row.data()[0]!=='0'){
|
||||
dt.row.add(['0','','SKU_BARU','',0,0,0,0,0,'<a class="table-icon fon-tabel-dt" tabindex="-1" title="Detail"><i class="bi-pencil"></i></a>']).draw(true);
|
||||
if (FoniaJS.user_level(2)) {
|
||||
dt.row.add(['0','','SKU_BARU','',0,0,0,0,0,'<a class="table-icon fon-tabel-dt" tabindex="-1" title="Detail"><i class="bi-pencil"></i></a>']).draw(true);
|
||||
} else dt.row.add(['0','','SKU_BARU','',0,0,'<a class="table-icon fon-tabel-dt" tabindex="-1" title="Detail"><i class="bi-pencil"></i></a>']).draw(true);
|
||||
l_row = dt.row(':last');
|
||||
}
|
||||
if (!l_row.child.isShown()) l_row.nodes().to$().find('.fon-tabel-dt').click();
|
||||
@@ -192,31 +187,25 @@ var ProdukJS = {
|
||||
new Request.JSON({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=detail-kemasan','InvID','InvKemasanID='+acell[0],'Nama_Satuan='+$('#StokID').find(':selected').text()],
|
||||
onSuccess: function(adata){
|
||||
onSuccess: (adata) => {
|
||||
$(div).html(adata.html);
|
||||
$(div)
|
||||
.find('#butBatalKemasan').click(function(e){
|
||||
this.kemasan_batal();
|
||||
}.bind(this)).end()
|
||||
.find('#butSimpanKemasan').click(function(e){
|
||||
this.kemasan_check();
|
||||
}.bind(this));
|
||||
.find('#butBatalKemasan').click(() => this.kemasan_batal()).end()
|
||||
.find('#butSimpanKemasan').click(() => this.kemasan_check());
|
||||
this.calc_Modal();
|
||||
this.calc_Harga(1);
|
||||
}.bind(this)
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
kemasan_del: function(acell){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', function(){
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus <b>"'+acell[1]+'"</b> ?', () => {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-kemasan','mode','mode_detail=delete','InvID','InvKemasanID='+acell[0]],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Proses hapus data sukses!');
|
||||
}.bind(this)
|
||||
onSuccess: () => FoniaJS.showInfo('Proses hapus data sukses!')
|
||||
}).send();
|
||||
}.bind(this), 'danger');
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
kemasan_save: function(){
|
||||
@@ -227,9 +216,7 @@ var ProdukJS = {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-kemasan','mode','mode_detail=update','InvID','InvKemasanID','SatuanID','SatuanLamaID','Kode_Barcode','Qty','Harga_Jual'],
|
||||
onSuccess: function(){
|
||||
FoniaJS.showInfo('Sukses menyimpan kemasan produk.');
|
||||
}.bind(this)
|
||||
onSuccess: () => FoniaJS.showInfo('Sukses menyimpan kemasan produk.')
|
||||
}).send();
|
||||
},
|
||||
|
||||
@@ -241,13 +228,13 @@ var ProdukJS = {
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=check-kemasan','InvID','SatuanID'],
|
||||
onSuccess: function(adata){
|
||||
onSuccess: (adata) => {
|
||||
if (adata.ada==true) {
|
||||
FoniaJS.showInfo("Nama kemasan telah ada dalam sistem!");
|
||||
} else {
|
||||
this.kemasan_save();
|
||||
}
|
||||
}.bind(this)
|
||||
}
|
||||
}).send();
|
||||
},
|
||||
|
||||
@@ -255,7 +242,8 @@ var ProdukJS = {
|
||||
if (tipe=="tabel-produk"){
|
||||
new Request.JSONF({
|
||||
url: this.PHP,
|
||||
sendParam: ['data=tabel-produk','Cari_Produk','Filter_Produk']
|
||||
sendParam: ['data=tabel-produk','Cari_Produk','Filter_Produk'],
|
||||
onSuccess: () => { $('#Cari_Produk').val('').focus(); }
|
||||
}).send();
|
||||
} else if (tipe=="tabel-kemasan"){
|
||||
new Request.JSONF({
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
Desc. : PHP - Fungsi - Fungsi ISS
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : February 10th, 2012.
|
||||
Last Modified : January 16th, 2019.
|
||||
Last Modified : February 27th, 2026.
|
||||
|
||||
(c) 2012 - 2019, 3FONIA Software; WWW.3FONIA.COM.
|
||||
(c) 2012 - 2026, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
*******************************************************************/
|
||||
|
||||
@@ -123,8 +123,8 @@ function Produk_Update($no_ref = "", $supid = 0) {
|
||||
$fdb->Query("SELECT *,CEIL((Harga_Beli-(Total_Diskon/Qty))/(Stok/Qty)) HPP FROM inv_detail WHERE No_Ref='".$no_ref."'");
|
||||
while ($fdb->Next()) {
|
||||
if ($fdb->RowFloat("Harga_Beli",0)>0) $tdb->Query("UPDATE inv_produk SET Harga_Beli='".$fdb->Row("HPP")."',Harga_Pokok=Harga_Beli+Harga_Tambah WHERE InvID='".$fdb->Row("InvID")."'");
|
||||
$tdb->Query("INSERT IGNORE INTO inv_produk_sup SET InvID='".$fdb->Row("InvID")."',SupID='".$supid."',Aktif=1");
|
||||
$tdb->Query("UPDATE inv_produk_sup SET Aktif=0 WHERE InvID='".$fdb->Row("InvID")."' AND SupID<>'".$supid."'");
|
||||
$tdb->Query("UPDATE inv_produk_sup SET Aktif=0 WHERE InvID='".$fdb->Row("InvID")."'");
|
||||
$tdb->Query("INSERT IGNORE INTO inv_produk_sup (InvID,SupID,Aktif) VALUES('".$fdb->Row("InvID")."','".$supid."',1)");
|
||||
}
|
||||
unset($tdb);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ if ($data == "auto-produk") {
|
||||
|
||||
if (count($arec) > 0) {
|
||||
$db->Query("SELECT * FROM inv_stok WHERE CabID='".$id_cab."' AND InvID='".$arec['InvID']."' LIMIT 1");
|
||||
if ($db->Next()) $arec['Stok_Sistem'] = $db->RowFloat("Stok", 2);
|
||||
if ($db->Next()) $arec['Stok_Sistem'] = $db->RowFloat("Stok", 0);
|
||||
}
|
||||
$ajson['InvID'] = $arec['InvID'];
|
||||
$ajson['Kode_Barang'] = $arec['Kode_SKU']." / ".$arec['Kode_Barcode'];
|
||||
|
||||
+10
-11
@@ -161,8 +161,7 @@ if ( $data == "detail-produk" ) {
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="InvID" value="'.$atabel['InvID'].'" />
|
||||
<input type="hidden" id="mode" value="'.$mode.'" />
|
||||
';
|
||||
<input type="hidden" id="mode" value="'.$mode.'" />';
|
||||
|
||||
} else if ( $data == "save" ) {
|
||||
if ($mode == "cancel") {
|
||||
@@ -208,7 +207,7 @@ if ( $data == "detail-produk" ) {
|
||||
if ($tcari <> "") {
|
||||
$tsql = " AND Nama_Produk LIKE '%".$tcari."%'";
|
||||
if (is_numeric($tcari)) {
|
||||
$tsql .= " OR InvID IN (SELECT InvID FROM inv_produk_kemasan WHERE CONCAT(Kode_SKU,Kode_Barcode) LIKE '%".$tcari."%')";
|
||||
$tsql .= " OR InvID IN (SELECT InvID FROM inv_produk_kemasan WHERE CONCAT(Kode_SKU,Kode_Barcode) LIKE '%".$tcari."%')";
|
||||
}
|
||||
} else {
|
||||
$tsql .= ($i_filt==0) ? "" : " AND Grup_InvID='".$i_filt."'";
|
||||
@@ -216,8 +215,8 @@ if ( $data == "detail-produk" ) {
|
||||
if (strlen($tsql)>0) $tsql = " WHERE".substr($tsql, 4);
|
||||
|
||||
$obj = new Table($db);
|
||||
$obj->set_table("(SELECT * FROM inv_produk".$tsql.") P LEFT JOIN inv_produk_kemasan K ON (K.InvID=P.InvID) LEFT JOIN para_satuan S ON (S.SatuanID=K.SatuanID) LEFT JOIN (SELECT InvID,SUM(Stok) Stok FROM inv_stok GROUP BY InvID) T ON (T.InvID=P.InvID)", "P.InvID,P.Nama_Produk,IFNULL(S.Nama_Satuan,'') Nama_Kemasan,Round(P.Harga_Pokok*IFNULL(K.Qty,1),2) Harga_Pokok,IF(IFNULL(K.Harga_Jual,0)=0,0,(((K.Harga_Jual-(P.Harga_Pokok*IFNULL(K.Qty,1)))*100)/K.Harga_Jual)) Margin,IFNULL(K.Harga_Jual,0) Harga_Jual,IF(IFNULL(T.Stok,0)=0,0,T.Stok/IFNULL(K.Qty,1)) Stok", "");
|
||||
$obj->add_field("InvID", "ID", "hid");
|
||||
$obj->set_table("(SELECT * FROM inv_produk".$tsql.") P LEFT JOIN inv_produk_kemasan K ON (K.InvID=P.InvID) LEFT JOIN para_satuan S ON (S.SatuanID=K.SatuanID) LEFT JOIN (SELECT InvID,SUM(Stok) Stok FROM inv_stok GROUP BY InvID) T ON (T.InvID=P.InvID)", "P.InvID,P.Nama_Produk,IFNULL(S.Nama_Satuan,'') Nama_Kemasan,Round(P.Harga_Pokok*IFNULL(K.Qty,1),2) Harga_Pokok,IF(IFNULL(K.Harga_Jual,0)=0,0,(((K.Harga_Jual-(P.Harga_Pokok*IFNULL(K.Qty,1)))*100)/K.Harga_Jual)) Margin,IFNULL(K.Harga_Jual,0) Harga_Jual,IF(IFNULL(T.Stok,0)=0,0,T.Stok/IFNULL(K.Qty,1)) Stok,IF(K.Harga_Jual<(P.Harga_Pokok*IFNULL(K.Qty,1)) OR ISNULL(K.Harga_Jual),1,0) Rugi", "");
|
||||
$obj->add_field("InvID", "No.", "c");
|
||||
$obj->add_field("Nama_Produk", "Nama Barang", "awr");
|
||||
$obj->add_field("Nama_Kemasan", "Kemasan", "l");
|
||||
if (user_level(2)) {
|
||||
@@ -227,9 +226,10 @@ if ( $data == "detail-produk" ) {
|
||||
} else {
|
||||
$obj->add_field("Harga_Jual", "Harga Jual", "r", "rupiah");
|
||||
}
|
||||
$obj->add_field("Stok", "Sisa Stok", "r", "rupiah");
|
||||
$obj->add_field("Stok", "Sisa Stok", "r", "rupiah2");
|
||||
$obj->add_field("Aktif", "Aktif", "c", "checkbox");
|
||||
$obj->set_field_order("InvID", "D");
|
||||
$obj->set_row_color("Rugi", 1, "rdanger");
|
||||
$obj->add_row_btn("clipboard", "Ubah", "ProdukJS.produk_ubah");
|
||||
if (user_level(2)) $obj->add_row_btn("arrow-counterclockwise", "Restore", "ProdukJS.produk_restore");
|
||||
$obj->add_row_btn("trash", "Hapus", "ProdukJS.produk_hapus");
|
||||
@@ -311,19 +311,18 @@ if ( $data == "detail-produk" ) {
|
||||
<div class="row mb-1">
|
||||
<label class="col-sm-6 col-lg-2 col-form-label" for="Harga_Jual">Harga Jual</label>
|
||||
<div class="col-sm-6 col-lg-4">'.$tharga.'</div>
|
||||
<div class="col-sm-6 col-lg-2"><div class="input-group"><div class="input-group-text">≈</div>'.$tpersen.'<div class="input-group-text">%</div></div></div>
|
||||
<div class="col-sm-6 col-lg-2"><div class="input-group'.(user_level(2)?'':' d-none').'"><div class="input-group-text">≈</div>'.$tpersen.'<div class="input-group-text">%</div></div></div>
|
||||
</div>
|
||||
<div class="row mb-1">
|
||||
<label class="col-sm-4 col-lg-2 col-form-label">Harga Modal</label>
|
||||
<div class="col-sm-6 col-lg-4">'.$tmodal.'</div>
|
||||
<label class="col-sm-4 col-lg-2 col-form-label'.(user_level(2)?'':' d-none').'">Harga Modal</label>
|
||||
<div class="col-sm-6 col-lg-4'.(user_level(2)?'':' d-none').'">'.$tmodal.'</div>
|
||||
<div class="col-sm-12 col-lg-6 text-end">
|
||||
<button type="button" class="btn btn-warning shadow-none me-2" id="butBatalKemasan">Batal</button><button type="button" class="btn btn-success shadow-none" id="butSimpanKemasan">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="InvKemasanID" value="'.$arec['InvKemasanID'].'">
|
||||
<input type="hidden" id="SatuanLamaID" value="'.$arec['SatuanID'].'">
|
||||
</div></div>
|
||||
';
|
||||
</div></div>';
|
||||
|
||||
} else if ( $data == "check-kemasan") {
|
||||
$ajson['ada'] = false;
|
||||
|
||||
Reference in New Issue
Block a user