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){