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:
+10
-10
@@ -14,7 +14,7 @@ var PPOBTXJS = {
|
||||
PHP: '',
|
||||
KODE: '',
|
||||
|
||||
index: function(){
|
||||
index() {
|
||||
this.data_query('tabel-detail');
|
||||
$('#Cari_TX').keydown((e) => {
|
||||
var key = e.keyCode || e.which || 0;
|
||||
@@ -28,44 +28,44 @@ var PPOBTXJS = {
|
||||
FoniaJS.setFocus('#Cari_TX');
|
||||
},
|
||||
|
||||
proses_print: function(oc, no_cetak){
|
||||
proses_print(oc, no_cetak) {
|
||||
var cetak = new PrinterPos('report/nota/ppob');
|
||||
cetak.add_param("Nomor_Cetak", no_cetak);
|
||||
cetak.add_param("Open_Cash", oc);
|
||||
cetak.exec();
|
||||
},
|
||||
|
||||
proses_delete: function(no_tx){
|
||||
proses_delete(no_tx) {
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_tx',
|
||||
sendParam: ['mode_detail=delete','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
|
||||
}).send();
|
||||
},
|
||||
|
||||
proses_reproc: function(no_tx){
|
||||
proses_reproc(no_tx) {
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_tx',
|
||||
sendParam: ['mode_detail=reproc','No_TX='+no_tx,'Tgl_From','Tgl_To','Cari_TX']
|
||||
}).send();
|
||||
},
|
||||
|
||||
nota_print: function(acell){
|
||||
nota_print(acell) {
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin ingin cetak ulang Nota "'+acell[0]+'" ?', () => {
|
||||
this.proses_print(0, acell[0]);
|
||||
}, 'info');
|
||||
},
|
||||
|
||||
nota_delete: function(acell){
|
||||
nota_delete(acell) {
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin akan hapus Nota "'+acell[0]+'" ?', () => {
|
||||
FoniaJS.showAuth(() => this.proses_delete(acell[0]), this, 'DELETE '+acell[0]);
|
||||
}, 'danger');
|
||||
},
|
||||
|
||||
nota_reproc: function(acell){
|
||||
nota_reproc(acell) {
|
||||
FoniaJS.showConfirm('Konfirmasi', 'Yakin proses ulang "'+acell[0]+'" ?', () => this.proses_reproc(acell[0]), 'warning');
|
||||
},
|
||||
|
||||
nota_detail: function(acell){
|
||||
nota_detail(acell) {
|
||||
new Request({
|
||||
url: this.PHP + '/form_tx',
|
||||
sendParam: ['No_TX='+acell[0]],
|
||||
@@ -75,7 +75,7 @@ var PPOBTXJS = {
|
||||
}).send();
|
||||
},
|
||||
|
||||
saldo_ppob: function(){
|
||||
saldo_ppob() {
|
||||
new Request({
|
||||
url: this.PHP + '/form_saldo',
|
||||
onSuccess: (adata) => {
|
||||
@@ -85,7 +85,7 @@ var PPOBTXJS = {
|
||||
}).send();
|
||||
},
|
||||
|
||||
data_query: function(tipe){
|
||||
data_query(tipe) {
|
||||
if (tipe=="tabel-detail"){
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_tx',
|
||||
|
||||
Reference in New Issue
Block a user