pos: bisa retur dg -1

This commit is contained in:
2026-03-03 13:46:23 +07:00
parent 9d9e9ca5c2
commit 62e58e7d97
5 changed files with 23 additions and 13 deletions
+9 -2
View File
@@ -5,7 +5,7 @@
Desc. : JS - Transaksi Penjualan / Kasir POS
Created By : Siau Pheng ([email protected]).
Created Date : August 5th, 2012.
Last Modified : January 21st, 2026.
Last Modified : March 3rd, 2026.
(c) 2012 - 2026, 3FONIA Software; WWW.3FONIA.COM.
@@ -178,7 +178,14 @@ var POSJS = {
produk_select: function(acell){
FoniaJS.closeWindow(this.winBProduk);
this.detail_produk('insert', 0, acell[0], acell[1]);
//jika stok kosong tidak simpan hanya utk glamore
if (parseInt(acell[3]) == 0){
this.detail_produk('insert', 0, acell[0], acell[1]);
} else {
this.winPesan = FoniaJS.showWindow('Pesan', 'Informasi Barang', '<div class="fs-3 text-center text-danger">Barang tidak tersedia atau habis !</div>', 300, [{},{i:'butTutup'}], () => {
$('#winPesan').find('#butTutup').click(() => $('#Nama_Produk').focus()).focus();
});
}
},
detail_produk: function(mode, ID, InvID, SatuanID){
+3 -3
View File
@@ -4,7 +4,7 @@
Desc. : JS - Informasi Aplikasi
Created By : Siau Pheng ([email protected]).
Created Date : November 23th, 2011.
Last Modified : February 12th, 2026.
Last Modified : February 28th, 2026.
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
@@ -58,12 +58,12 @@ var AboutJS = {
url: this.PHP,
sendParam: ['data=proses_update','new_sha1','new_date'],
onSuccess: (adata) => {
if (adata.sukses==true) {
if (adata.success==true) {
$('#spanStatus').html(adata.message);
FoniaJS.showInfo('Aplikasi telah di Update.<br>Silakan refresh browser Anda!');
} else {
FoniaJS.showInfo('Aplikasi gagal di Update.');
}
console.log(adata.message);
}
}).send();
}