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,14 +14,14 @@ var RepoDanaPosJS = {
PHP: '',
KODE: '',
index: function(){
index() {
$('#butPOS').click(() => this.proses_pos());
$('#butCetak').click(() => this.proses_print(true));
$('#butPreview').click(() => this.proses_print());
$('#butExcel').click(() => this.proses_dload());
},
proses_pos: function(){
proses_pos() {
if ($('#KasirID').val()==0){
FoniaJS.showError("Untuk Cetak POS, pilih satu Nama Kasir !");
$('#KasirID').focus();
@@ -36,7 +36,7 @@ var RepoDanaPosJS = {
cetak.exec();
},
proses_print: function(prt){
proses_print(prt) {
var cetak = new Printer(this.PHP + '/print');
cetak.add_param("Tipe");
cetak.add_param("CabID");
@@ -46,7 +46,7 @@ var RepoDanaPosJS = {
if (prt) cetak.doPrint(); else cetak.doPreview();
},
proses_dload: function(){
proses_dload() {
var dload = new Download(this.PHP + '/excel');
dload.add_param("Tipe");
dload.add_param("CabID");