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
+9 -9
View File
@@ -14,7 +14,7 @@ var PPOBProdukJS = {
PHP: '',
KODE: '',
index: function(){
index() {
this.data_query('tabel-produk');
$('#butPrint').click(() => this.print_show());
$('#butUpdate').click(() => this.update_show());
@@ -30,7 +30,7 @@ var PPOBProdukJS = {
FoniaJS.setFocus('#Cari_Produk');
},
print_show: function(){
print_show() {
new Request({
url: this.PHP + '/detail_print',
onSuccess: (ajson) => {
@@ -43,7 +43,7 @@ var PPOBProdukJS = {
}).send();
},
print_produk: function(prt){
print_produk(prt) {
var cetak = new Printer(this.PHP + '/print_produk');
cetak.add_param("KateID");
cetak.add_param("OpeID");
@@ -52,7 +52,7 @@ var PPOBProdukJS = {
FoniaJS.closeWindow(this.winDPrint);
},
update_show: function(){
update_show() {
new Request({
url: this.PHP + '/detail_update',
onSuccess: (ajson) => {
@@ -63,7 +63,7 @@ var PPOBProdukJS = {
}).send();
},
update_proses: function(){
update_proses() {
new Request_JSF({
url: this.PHP + '/proses_update',
sendParam: ['K_Kate','K_Ope'],
@@ -74,7 +74,7 @@ var PPOBProdukJS = {
}).send();
},
produk_show: function(mode, ID){
produk_show(mode, ID) {
new Request({
url: this.PHP + '/form_produk',
sendParam: ['mode_detail='+mode,'ProdukID='+ID],
@@ -86,11 +86,11 @@ var PPOBProdukJS = {
}).send();
},
produk_ubah: function(acell){
produk_ubah(acell) {
this.produk_show('update', acell[0]);
},
produk_simpan: function(){
produk_simpan() {
new Request_JSF({
url: this.PHP + '/table_produk',
sendParam: ['mode_detail','ProdukID','OpeID','KateID','Nama_Produk='+encodeURIComponent($('#Nama_Produk').val()),'Kode','Harga_Pokok','Harga_Jual','Status','Cari_Produk'],
@@ -103,7 +103,7 @@ var PPOBProdukJS = {
}).send();
},
data_query: function(tipe, mode){
data_query(tipe, mode) {
if (tipe=="tabel-produk"){
new Request_JSF({
url: this.PHP + '/table_produk',