new update
This commit is contained in:
@@ -264,7 +264,6 @@
|
||||
<div class="col-12">
|
||||
<input type="button" class="float-right btn btn-danger mr-2" value="BATAL" onclick="window.location.replace('{{ url()->previous() }}')">
|
||||
<input type="button" class="float-right btn btn-primary mr-2" value="TERIMA" onclick="bayaransemua()">
|
||||
<input type="button" class="float-left btn btn-warning mr-2" value="HISTORY" id="histbtn" onclick="historybayaran()">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -1475,42 +1474,6 @@ function ubahwakil(e)
|
||||
}
|
||||
|
||||
|
||||
function historybayaran()
|
||||
{
|
||||
$.ajax({
|
||||
method: 'get',
|
||||
url: api + '/api/transaction/' + norujukan,
|
||||
success: function(data)
|
||||
{
|
||||
historybayarantable(data);
|
||||
$('#historybayaranModal').modal();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
function historybayarantable(data){
|
||||
var counter = 1;
|
||||
|
||||
historybayarandatatable.clear().draw();
|
||||
$.each(data,function(index,bayaran){
|
||||
|
||||
var urlroute = '{{ route("resit.ansuran", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', bayaran['id']);
|
||||
|
||||
console.log(bayaran['']);
|
||||
historybayarandatatable.row.add([
|
||||
counter,
|
||||
bayaran['created_at'],
|
||||
"RM " + bayaran['duit_masuk'],
|
||||
'<a class="btn btn-info" target="_blank" href='+ urlroute +'>Cetak</a>'
|
||||
]).draw();
|
||||
counter = counter + 1;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// Restricts input for the set of matched elements to the given inputFilter function.
|
||||
(function($) {
|
||||
$.fn.inputFilter = function(inputFilter) {
|
||||
|
||||
Reference in New Issue
Block a user