You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
265 lines
5.3 KiB
JavaScript
265 lines
5.3 KiB
JavaScript
export const fpinjam = [
|
|
{
|
|
title: 'Kode Pinjaman',
|
|
type: 'select',
|
|
name: 'jenis',
|
|
row: 3,
|
|
data: JSON.parse(_id('gpinjam').innerHTML),
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'No.Bukti Pinjaman',
|
|
type: 'text',
|
|
name: 'faktur',
|
|
row: 3,
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Tgl. Pengajuan',
|
|
type: 'date',
|
|
name: 'tglmohon',
|
|
row: 3,
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Tgl. Realisasi',
|
|
type: 'date',
|
|
name: 'tgl',
|
|
row: 3,
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'No. Anggota',
|
|
type: 'select',
|
|
name: 'kode',
|
|
row: 3,
|
|
data: JSON.parse(_id('anggota').innerHTML),
|
|
readonly: false,
|
|
action: function (e) {
|
|
$('#' + e.id).change(function () {
|
|
var val = $(this).val();
|
|
var f = cssLoader();
|
|
AuditDevQuery(`SELECT * FROM anggota WHERE kode = "${val}"`, function (w) {
|
|
f.remove();
|
|
if (w.length > 0) {
|
|
w = w[0];
|
|
globalThis['nama'].parent.value = w.nama;
|
|
globalThis['nip'].parent.value = w.nip;
|
|
globalThis['gaji'].parent.value = w.gaji.number(2).currency(2);
|
|
globalThis['golgaji'].parent.value = w.gaji.number(2).currency(2);
|
|
globalThis['dept'].parent.value = w.unitkerja;
|
|
_setval('nota', w.jurubayar);
|
|
};
|
|
});
|
|
});
|
|
},
|
|
}
|
|
, {
|
|
title: 'Nama',
|
|
type: 'text',
|
|
name: 'nama',
|
|
unfollow: true,
|
|
row: 3,
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'NIP',
|
|
type: 'text',
|
|
name: 'nip',
|
|
row: 3,
|
|
unfollow: true,
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Sisa Gaji',
|
|
type: 'text',
|
|
name: 'gaji',
|
|
row: 3,
|
|
unfollow: true,
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Unit Kerja',
|
|
type: 'text',
|
|
name: 'dept',
|
|
row: 3,
|
|
unfollow: true,
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Gol Gaji',
|
|
type: 'text',
|
|
name: 'golgaji',
|
|
row: 3,
|
|
unfollow: true,
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Juru Bayar',
|
|
type: 'text',
|
|
name: 'nota',
|
|
row: 3,
|
|
unfollow: true,
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Jumlah Yang Diajukan',
|
|
type: 'number',
|
|
name: 'jumlah',
|
|
row: 4,
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Masa Angsuran (bulan)',
|
|
type: 'number',
|
|
name: 'lama',
|
|
row: 4,
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Non Gaji/ Potong Gaji',
|
|
type: 'select',
|
|
name: 'tr',
|
|
row: 4,
|
|
info: '( Digunakan untuk format form pembayaran )',
|
|
data: [{ id: 'L', text: 'Non Gaji' }, { id: 'G', text: 'Potong Gaji' }],
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Keterangan',
|
|
type: 'text',
|
|
name: 'keterangan',
|
|
row: 12,
|
|
info: '( Jika keterangan tidak diisi akan di generate otomatis )',
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Jasa/Tahun(%)',
|
|
type: 'number',
|
|
name: 'bungath',
|
|
row: 4,
|
|
decimal: 2,
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'kodesp',
|
|
type: 'text',
|
|
name: 'kodesp',
|
|
row: 4,
|
|
display: 'none',
|
|
readonly: false,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Total Jasa',
|
|
type: 'number',
|
|
name: 'pokok',
|
|
row: 4,
|
|
display: 'none',
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Jasa Perbulan',
|
|
type: 'number',
|
|
name: 'bungabln',
|
|
row: 4,
|
|
readonly: true,
|
|
unfollow: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Total Jasa',
|
|
type: 'number',
|
|
name: 'bunga',
|
|
row: 4,
|
|
readonly: true,
|
|
display: 'none',
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'Total Angsuran/ Bulan',
|
|
type: 'number',
|
|
name: 'angsuran',
|
|
row: 4,
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'user',
|
|
type: 'text',
|
|
name: 'user',
|
|
row: 4,
|
|
display: 'none',
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
, {
|
|
title: 'user',
|
|
type: 'text',
|
|
name: 'userlog',
|
|
row: 4,
|
|
display: 'none',
|
|
readonly: true,
|
|
action: function () {
|
|
|
|
},
|
|
}
|
|
] |