laporan fix
This commit is contained in:
@@ -44,6 +44,12 @@
|
||||
var api_url = "<?php echo $api_url ?>";
|
||||
var kodcaw = "<?php echo $cawangan_info['kodcaw'] ?>";
|
||||
|
||||
$(document).ready( function () {
|
||||
$('#datetimepicker1').datepicker({
|
||||
format: 'dd-mm-yyyy'
|
||||
});
|
||||
});
|
||||
|
||||
var tablecustomers = $('#myTable').DataTable({
|
||||
"ordering": false
|
||||
});
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
panjar['deskripsi'],
|
||||
panjar['kategori'],
|
||||
panjar['bayaran'],
|
||||
'<button onclick="deletepanjar();" class="btn btn-danger fas fa-trash-alt"></button>'
|
||||
'<button onclick="deletepanjar(this);" data-recno="' + panjar['recno'] + '" class="btn btn-danger fas fa-trash-alt"></button>'
|
||||
]).draw();
|
||||
counter = counter + 1;
|
||||
|
||||
@@ -171,8 +171,10 @@
|
||||
|
||||
}
|
||||
|
||||
function deletepanjar()
|
||||
function deletepanjar(e)
|
||||
{
|
||||
let rec_no = $(e).data('recno');
|
||||
|
||||
Swal.fire({
|
||||
title: 'Adakah anda pasti?',
|
||||
text: "Anda tidak dapat untuk mengembalinya kembali!",
|
||||
|
||||
Reference in New Issue
Block a user