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
+6 -6
View File
@@ -15,7 +15,7 @@ var MemberPointJS = {
KODE: '',
html5QrcodeScanner: null,
index: function(){
index() {
$('#butBrow').click(() => this.member_brow());
if (FoniaJS.WEB_MOBILE){
html5QrcodeScanner = new Html5Qrcode('qr-reader');
@@ -27,7 +27,7 @@ var MemberPointJS = {
this.data_query('table-point');
},
ScanSukses: function(decodedText, decodedResult){
ScanSukses(decodedText, decodedResult) {
new Request({
url: MemberPointJS.PHP + '/scan_member',
sendParam: ['Cari_Member='+decodedText],
@@ -41,7 +41,7 @@ var MemberPointJS = {
}).send();
},
member_brow: function(){
member_brow() {
var _isi = new String('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Member" 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="divBrowMember">&nbsp;</div>');
this.winBMember = FoniaJS.showWindow('BMember', 'Daftar Member', _isi, 'xl', '', () => {
$('#winBMember')
@@ -58,7 +58,7 @@ var MemberPointJS = {
});
},
member_select: function(acell){
member_select(acell) {
FoniaJS.closeWindow(this.winBMember);
$('#MemberID').val(acell[0]);
$('#Kode_Member').val(acell[1]);
@@ -67,7 +67,7 @@ var MemberPointJS = {
this.data_query('table-point');
},
data_query: function(tipe){
data_query(tipe) {
if (tipe=="table-point"){
new Request_JSF({
url: this.PHP + '/table_point',
@@ -82,7 +82,7 @@ var MemberPointJS = {
}
},
Member_Comp: function(item){
Member_Comp(item) {
var adata = item.data.split(':');
$('#MemberID').val(item.value);
$('#Kode_Member').val(adata[0]);