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,7 +14,7 @@ var RepoGelHDetailJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
index: function(){
|
||||
index() {
|
||||
$('#butCetak').click(() => this.proses_print(true));
|
||||
$('#butPreview').click(() => this.proses_print());
|
||||
$('#butBrowJurnal').click(() => this.jurnal_brow());
|
||||
@@ -26,13 +26,13 @@ var RepoGelHDetailJS = {
|
||||
FoniaJS.setFocus('#Kode_Jurnal');
|
||||
},
|
||||
|
||||
proses_print: function(prt){
|
||||
proses_print(prt) {
|
||||
var cetak = new Printer(this.PHP + '/print');
|
||||
cetak.add_param("Kode_Jurnal");
|
||||
if (prt) cetak.doPrint(); else cetak.doPreview();
|
||||
},
|
||||
|
||||
jurnal_brow: function(){
|
||||
jurnal_brow() {
|
||||
var _isi = new String('<div class="row mb-1"><div class="col"><div class="input-group"><input class="form-control" id="Cari_Jurnal" 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="divBrowJurnal"> </div>');
|
||||
this.winBTX = FoniaJS.showWindow('BTX', 'Daftar Transaksi', _isi, 'xl', '', () => {
|
||||
$('#winBTX')
|
||||
@@ -49,12 +49,12 @@ var RepoGelHDetailJS = {
|
||||
});
|
||||
},
|
||||
|
||||
jurnal_select: function(acell){
|
||||
jurnal_select(acell) {
|
||||
FoniaJS.closeWindow(this.winBTX);
|
||||
$('#Kode_Jurnal').val(acell[0]);
|
||||
},
|
||||
|
||||
data_query: function(tipe, mode){
|
||||
data_query(tipe, mode) {
|
||||
if (tipe=="brow-jurnal"){
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/brow_jurnal',
|
||||
|
||||
Reference in New Issue
Block a user