Files
cmasa/app/Scripts/report/inv/hutang.js
T

44 lines
1.2 KiB
JavaScript

/*******************************************************************
PHP Class : /Controller/Report/Inv/HutangController
Description : Laporan Hutang Supplier
Created By : Siau Pheng ([email protected]).
Created Date : July 17th, 2011.
Last Modified : October 8th, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var RepoInvHutangJS = {
PHP: '',
KODE: '',
index() {
$('#butCetak').click(() => this.proses_print(true));
$('#butPreview').click(() => this.proses_print());
$('#butExcel').click(() => this.proses_dload());
},
proses_print(prt) {
var cetak = new Printer(this.PHP + '/print');
cetak.add_param("Tipe");
cetak.add_param("CabID");
cetak.add_param("SupID");
cetak.add_param("Tgl_From");
cetak.add_param("Tgl_To");
if (prt) cetak.doPrint(); else cetak.doPreview();
},
proses_dload() {
var dload = new Download(this.PHP + '/excel');
dload.addParam("Tipe");
dload.addParam("CabID");
dload.addParam("SupID");
dload.addParam("Tgl_From");
dload.addParam("Tgl_To");
dload.download();
}
};