fix export detail subrogasi jamkrindo

This commit is contained in:
daengdeni 2024-03-22 14:41:42 +07:00
parent bdc9526d2f
commit 4b30f7e298

View File

@ -142,7 +142,7 @@
} }
}) })
$('#kt_modal_add_detail_subrogasi_jamkrindo').modal('hide'); $('#kt_modal_add_detail_subrogasi_jamkrindo').modal('hide');
LaravelDataTables['detail_subrogasi_jamkrindo-table'].ajax.reload(); LaravelDataTables['detail-pembayaran-table'].ajax.reload();
}); });
Livewire.on('error', (message) => { Livewire.on('error', (message) => {
@ -157,7 +157,7 @@
} }
}) })
$('#kt_modal_add_detail_subrogasi_jamkrindo').modal('hide'); $('#kt_modal_add_detail_subrogasi_jamkrindo').modal('hide');
LaravelDataTables['detail_subrogasi_jamkrindo-table'].ajax.reload(); LaravelDataTables['detail-pembayaran-table'].ajax.reload();
}); });
}); });
@ -182,41 +182,41 @@
$(function(){ $(function(){
const documentTitle = 'Detail Subrogari Jamkrindo Report'; const documentTitle = 'Detail Subrogari Jamkrindo Report';
var buttons = new $.fn.dataTable.Buttons(LaravelDataTables['detail_subrogasi_jamkrindo-table'], { var buttons = new $.fn.dataTable.Buttons(LaravelDataTables['detail-pembayaran-table'], {
buttons: [ buttons: [
{ {
extend: 'copyHtml5', extend: 'copyHtml5',
title: documentTitle, title: documentTitle,
exportOptions: { exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6] columns: [0, 1, 2, 3, 4, 5]
} }
}, },
{ {
extend: 'excelHtml5', extend: 'excelHtml5',
title: documentTitle, title: documentTitle,
exportOptions: { exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6] columns: [0, 1, 2, 3, 4, 5]
} }
}, },
{ {
extend: 'csvHtml5', extend: 'csvHtml5',
title: documentTitle, title: documentTitle,
exportOptions: { exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6] columns: [0, 1, 2, 3, 4, 5]
} }
}, },
{ {
extend: 'pdfHtml5', extend: 'pdfHtml5',
title: documentTitle, title: documentTitle,
exportOptions: { exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6] columns: [0, 1, 2, 3, 4, 5]
} }
}, },
{ {
extend: 'print', extend: 'print',
title: documentTitle, title: documentTitle,
exportOptions: { exportOptions: {
columns: [0, 1, 2, 3, 4, 5, 6] columns: [0, 1, 2, 3, 4, 5]
} }
} }
] ]