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
+4 -4
View File
@@ -14,17 +14,17 @@ var MemberBaruJS = {
PHP: '',
KODE: '',
index: function(){
index() {
$('#butTambah').click(() => this.proses_add());
$('#butSimpan').click(() => this.proses_save());
this.data_query('view');
},
proses_add: function(){
proses_add() {
this.data_query('add');
},
proses_save: function(){
proses_save() {
new Request({
url: this.PHP + '/proses_simpan',
sendParam: ['MemberID','Grup_MemberID','Kode_Member','Nama_Member','Alamat_Member','Kota_Member','Telp_Member','KTP_Member','Tgl_Lahir','Tgl_Daftar'],
@@ -39,7 +39,7 @@ var MemberBaruJS = {
}).send()
},
data_query: function(mode){
data_query(mode) {
new Request({
url: this.PHP + '/form_master',
sendParam: ['mode='+mode],