Refactor AJAX requests from Request.JSONF to Request_JSF across multiple scripts for consistency and improved functionality.

This commit is contained in:
2026-11-01 13:11:40 +07:00
parent 52897c25c5
commit 7a585ab7c2
58 changed files with 200 additions and 200 deletions
+5 -5
View File
@@ -98,7 +98,7 @@ var GELPiutangJS = {
bayar_hapus: function(acell){
FoniaJS.showConfirm('Konfirmasi', 'Hapus item <strong>"'+acell[1]+'"</strong> ?', () => {
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_bayar',
sendParam: ['mode_detail=delete','No_Jual','ID='+acell[0]]
}).send();
@@ -110,7 +110,7 @@ var GELPiutangJS = {
FoniaJS.showError("Jumlah pelunasan melebihi jumlah faktur!");
return;
}
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_bayar',
sendParam: ['mode_detail=insert','MemberID','No_Jual','Tgl_Bayar','Kode_Rek','Total_Bayar','Total_Potong','Tipe_Nota','Nama_Member'],
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
@@ -135,17 +135,17 @@ var GELPiutangJS = {
}
}).send();
} else if (tipe=="tabel-nota"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_nota',
sendParam: ['MemberID','Mode_Tampil']
}).send();
} else if (tipe=="tabel-bayar"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/table_bayar',
sendParam: ['No_Jual','Lunas','Mode_Tampil']
}).send();
} else if (tipe=="brow-buyer"){
new Request.JSONF({
new Request_JSF({
url: this.PHP + '/brow_buyer',
sendParam: ['Cari_Buyer'],
onSuccess: () => FoniaJS.setFocus('#Cari_Buyer')