pos: bisa retur dg -1, po: hilangkan hanya pilihan aktif

This commit is contained in:
2026-03-03 13:45:41 +07:00
parent feba2009a8
commit 1ac15b58e3
8 changed files with 242 additions and 16 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){
+46
View File
@@ -0,0 +1,46 @@
/*******************************************************************
App. Name : INVENTORY AND SALES SYSTEMS
Module : /apps/js/repo/jual_retur.js
Desc. : JS - Laporan Retur Penjualan
Created By : Siau Pheng ([email protected]).
Created Date : April 12th, 2011.
Last Modified : March 3rd, 2026.
(c) 2011 - 2026, 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var RepoJualReturJS = {
PHP: '',
KODE: '',
loading: function(){
$('#butCetak').click(function(){this.proses_print(true);}.bind(this));
$('#butPreview').click(function(){this.proses_print();}.bind(this));
$('#butExcel').click(function(){this.proses_dload();}.bind(this));
},
proses_print: function(prt){
var cetak = new cPRINTER(this.PHP);
cetak.add_param("data", "print");
cetak.add_param("Tipe");
cetak.add_param("CabID");
cetak.add_param("KasirID");
cetak.add_param("Tgl_From");
cetak.add_param("Tgl_To");
if (prt) cetak.doPrint(); else cetak.doPreview();
},
proses_dload: function(){
var dload = new cEXPORT(this.PHP);
dload.add_param("data", "export");
dload.add_param("Tipe");
dload.add_param("CabID");
dload.add_param("KasirID");
dload.add_param("Tgl_From");
dload.add_param("Tgl_To");
dload.download();
}
};
+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();
}