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,14 +14,14 @@ var RepoStokAkhirJS = {
|
||||
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() {
|
||||
var cetak = new PrinterPos(this.PHP + '/pos');
|
||||
cetak.add_param("CabID");
|
||||
cetak.add_param("SupID");
|
||||
@@ -34,7 +34,7 @@ var RepoStokAkhirJS = {
|
||||
cetak.exec();
|
||||
},
|
||||
|
||||
proses_print: function(prt){
|
||||
proses_print(prt) {
|
||||
var cetak = new Printer(this.PHP + '/print');
|
||||
cetak.add_param("CabID");
|
||||
cetak.add_param("SupID");
|
||||
@@ -47,7 +47,7 @@ var RepoStokAkhirJS = {
|
||||
if (prt) cetak.doPrint(); else cetak.doPreview();
|
||||
},
|
||||
|
||||
proses_dload: function(){
|
||||
proses_dload() {
|
||||
var dload = new Download(this.PHP + '/excel');
|
||||
dload.add_param("CabID");
|
||||
dload.add_param("SupID");
|
||||
@@ -60,7 +60,7 @@ var RepoStokAkhirJS = {
|
||||
dload.download();
|
||||
},
|
||||
|
||||
oc_MinStok: function(){
|
||||
oc_MinStok() {
|
||||
if ($('#Min_Stok').val()=='Y') {
|
||||
$('#Min_Qty').prop({disabled:false, readonly:false});
|
||||
FoniaJS.setFocus('#Min_Qty')
|
||||
|
||||
Reference in New Issue
Block a user