Refactor member and product scripts to use concise method definitions

- Updated all function declarations to use ES6 shorthand method syntax in member.js, member_grup.js, point_barang.js, point_skema.js, point_tipe.js, kategori.js, operator.js, produk.js, produk_grup.js, rekpos.js, satuan.js, supplier.js, and varian.js.
This commit is contained in:
2026-11-01 14:57:54 +07:00
parent be2091eddd
commit aaaf0a9215
92 changed files with 749 additions and 749 deletions
+7 -7
View File
@@ -14,7 +14,7 @@ var RepoInvBarcodeJS = {
PHP: '',
KODE: '',
index: function(){
index() {
$('#butCetak').click(() => this.proses_print());
$('#butLoadPrinter').click(() => this.load_printer());
$('#butBrowProduk').click(() => this.produk_brow());
@@ -22,7 +22,7 @@ var RepoInvBarcodeJS = {
FoniaJS.setFocus('#Nama_Produk');
},
proses_print: function(){
proses_print() {
if ($('#InvID').val() == 0){
FoniaJS.showError('Silakan masukkan Nama Barang !');
FoniaJS.setFocus('Nama_Produk');
@@ -42,7 +42,7 @@ var RepoInvBarcodeJS = {
cetak.exec();
},
produk_brow: function(){
produk_brow() {
var _isi = new String('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Produk" placeholder="Kunci Pencarian" type="text"><button class="btn btn-info shadow-none" type="button" id="butSearch">Cari</button><button class="btn btn-secondary shadow-none" type="button" id="butAll">Semua</button></div></div></div><div id="divBrowProduk">&nbsp;</div>');
this.winBProduk = FoniaJS.showWindow('BProduk', 'Daftar Barang', _isi, 'xl', '', () => {
$('#winBProduk')
@@ -59,7 +59,7 @@ var RepoInvBarcodeJS = {
});
},
produk_select: function(acell){
produk_select(acell) {
FoniaJS.closeWindow(this.winBProduk);
$('#InvID').val(acell[0]);
$('#SatuanID').val(acell[1]);
@@ -69,7 +69,7 @@ var RepoInvBarcodeJS = {
FoniaJS.setFocus('#Qty');
},
data_query: function(tipe){
data_query(tipe) {
if (tipe=="brow-produk"){
new Request_JSF({
url: this.PHP + '/brow_produk',
@@ -79,7 +79,7 @@ var RepoInvBarcodeJS = {
}
},
Produk_Comp: function(item){
Produk_Comp(item) {
var adata = item.data.split(':');
$('#InvID').val(item.value);
$('#SatuanID').val(adata[0]);
@@ -89,7 +89,7 @@ var RepoInvBarcodeJS = {
FoniaJS.setFocus('#Qty');
},
load_printer: function(){
load_printer() {
qz.printers.find().then((data) => {
new Request_JSF({
url: this.PHP + '/load_printer',