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
@@ -50,7 +50,7 @@ socket.on('super-data', (adata) => {
var IndexJS = {
index: function(){
index() {
new Request({
url: 'index/index',
sendParam: [],
@@ -66,7 +66,7 @@ var IndexJS = {
}).send();
},
get_picture: function(){
get_picture() {
new Request({
url: 'system/profile/get_picture',
onSuccess: (ajson) => {
@@ -75,13 +75,13 @@ var IndexJS = {
}).send();
},
load_chart: function(){
load_chart() {
this.data_query('chart-sale');
this.data_query('chart-omzet');
this.data_query('tabel-stok');
},
data_query: function(tipe){
data_query(tipe) {
if (tipe=="chart-sale"){
new Request({
url: 'index/chart_sale',