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:
@@ -14,13 +14,13 @@ var RepoMemberPointJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
index: function(){
|
||||
index() {
|
||||
$('#butCetak').click(() => this.proses_print(true));
|
||||
$('#butPreview').click(() => this.proses_print());
|
||||
$('#butExcel').click(() => this.proses_dload());
|
||||
},
|
||||
|
||||
proses_print: function(prt){
|
||||
proses_print(prt) {
|
||||
if ($('#Point_TipeID').val() == 0){
|
||||
FoniaJS.showInfo("Silakan pilih Tipe Point !");
|
||||
return;
|
||||
@@ -35,7 +35,7 @@ var RepoMemberPointJS = {
|
||||
if (prt) cetak.doPrint(); else cetak.doPreview();
|
||||
},
|
||||
|
||||
proses_dload: function(){
|
||||
proses_dload() {
|
||||
if ($('#Point_TipeID').val() == 0){
|
||||
FoniaJS.showInfo("Silakan pilih Tipe Point !");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user