- 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.
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
/*******************************************************************
|
|
|
|
PHP Class : /Controller/Report/Gel/BulanrlcabController
|
|
Description : Laporan Rugi / Laba Cabang
|
|
Created By : Siau Pheng ([email protected]).
|
|
Created Date : July 12th, 2008.
|
|
Last Modified : October 24th, 2026.
|
|
|
|
(c) 3FONIA Software; WWW.3FONIA.COM.
|
|
|
|
*******************************************************************/
|
|
|
|
var RepoGelBRLCabJS = {
|
|
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("CabID");
|
|
cetak.add_param("Bulan1");
|
|
cetak.add_param("Bulan2");
|
|
cetak.add_param("Tahun");
|
|
if (prt) cetak.doPrint(); else cetak.doPreview();
|
|
},
|
|
|
|
proses_dload() {
|
|
var dload = new Download(this.PHP + '/excel');
|
|
dload.add_param("CabID");
|
|
dload.add_param("Bulan1");
|
|
dload.add_param("Bulan2");
|
|
dload.add_param("Tahun");
|
|
dload.download();
|
|
}
|
|
|
|
};
|