Refactor AJAX requests from Request.JSONF to Request_JSF across multiple scripts for consistency and improved functionality.
This commit is contained in:
@@ -98,7 +98,7 @@ var GELHutangJS = {
|
||||
|
||||
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_Beli','ID='+acell[0]]
|
||||
}).send();
|
||||
@@ -110,7 +110,7 @@ var GELHutangJS = {
|
||||
FoniaJS.showError("Jumlah pelunasan melebihi jumlah faktur!");
|
||||
return;
|
||||
}
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_bayar',
|
||||
sendParam: ['mode_detail=insert','SupID','No_Beli','Tgl_Bayar','Kode_Rek','Total_Bayar','Total_Potong','Tipe_Nota','Nama_Sup'],
|
||||
onSuccess: () => FoniaJS.closeWindow(this.winBayar)
|
||||
@@ -135,17 +135,17 @@ var GELHutangJS = {
|
||||
}
|
||||
}).send();
|
||||
} else if (tipe=="tabel-nota"){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_nota',
|
||||
sendParam: ['SupID','Mode_Tampil']
|
||||
}).send();
|
||||
} else if (tipe=="tabel-bayar"){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/table_bayar',
|
||||
sendParam: ['No_Beli','Lunas','Mode_Tampil']
|
||||
}).send();
|
||||
} else if (tipe=="brow-sup"){
|
||||
new Request.JSONF({
|
||||
new Request_JSF({
|
||||
url: this.PHP + '/brow_sup',
|
||||
sendParam: ['Cari_Sup'],
|
||||
onSuccess: () => FoniaJS.setFocus('#Cari_Sup')
|
||||
|
||||
Reference in New Issue
Block a user