Files
simrs-jatim/keuangan/list_status_billing.php
2024-04-19 14:04:41 +07:00

130 lines
5.0 KiB
PHP

<?php
array_push($form_plugin['ui_plugins_js'],$floatthead_js);
array_push($form_plugin['ui_plugins_js'],$sweetalert_js);
?>
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header">List Status Billing</div>
<div class="card-body">
<form id="frm_report">
<input type="hidden" name="data_only" value="1">
<div class="form-group row">
<label class="col-sm-2">System</label>
<div class="col-sm-10">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="system" id="rdRajal" value="RAJAL" checked="true">
<label class="form-check-label" for="rdRajal">Rawat Jalan</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="system" id="rdRanap" value="RANAP">
<label class="form-check-label" for="rdRanap">Rawat Inap</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="system" id="rdNonreg" value="NONREG">
<label class="form-check-label" for="rdNonreg">Non Register</label>
</div>
</div>
</div>
<div class="form-group row" id="isiTanggal">
<div class="col-sm-2">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="filter" id="rdTanggal" value="tanggal" checked="true">
<label class="form-check-label" for="rdTanggal">Tanggal</label>
</div>
</div>
<div class="col-sm-3">
<input type="text" name="tgl_awal" value="<?php echo date('Y-m-d'); ?>" class="mask-date-default datepicker-default form-control form-control-sm" id="tgl_awal">
</div>
<div class="col-sm-3">
<input type="text" name="tgl_akhir" value="<?php echo date('Y-m-d'); ?>" class="mask-date-default datepicker-default form-control form-control-sm" id="tgl_akhir">
</div>
</div>
<div class="form-group row" id="isiNobill">
<div class="col-sm-2">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="filter" id="rdNobill" value="nobill">
<label class="form-check-label" for="rdNobill">Nobill</label>
</div>
</div>
<div class="col-sm-3">
<input type="text" name="nobill" value="" class="form-control form-control-sm" id="nobill">
</div>
</div>
</form>
</div>
<div class="card-footer">
<button class="btn btn-primary" type="button" onclick="cari()"><i class="fa fa-search"></i> Cari</button>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-12">
<form id="form_keringanan">
<div class="wrapper" style="overflow:auto;height:360px">
<table class="table table-bordered table-striped table-sm" id="status_billing">
<thead>
<tr class="bg-success text-white">
<th style="width:5%">No</th>
<th style="width:10%">Tanggal</th>
<th style="width:10%">No MR</th>
<th style="width:10%">No Billing /<br> No Nota</th>
<th style="width:15%">Uraian Tarif</th>
<th style="width:10%">Petugas Entri</th>
<th style="width:10%">Verifikasi Cara Bayar<?php echo form_dropdown('status_verif',[''=>'Pilih Status','Sudah Verif'=>'Sudah Verifikasi','Belum Verifikasi'=>'Belum Verifikasi'],'','class="form-control form-control-sm" id="filter_verif"'); ?></th>
<th style="width:10%">Petugas Verif</th>
<th style="width:10%">Piutang</th>
<th style="width:10%">Petugas Piutang</th>
<th style="width:10%">Penjamin</th>
<th style="width:10%">Lunas</th>
<th style="width:10%">Kasir</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
<?php
$js_init .= '
const Toast = Swal.mixin({
toast: true,
position: "top-end",
showConfirmButton: false,
timer: 3000
});
var $table = $("#status_billing");
function cari() {
filter_verif = $("#filter_verif").find(":selected").val();
$.post("'._BASE_.'report/index.php?page=lap_status_billing",$("#frm_report").serialize()+"&st_verif="+filter_verif,function(data)
{
if(Object.entries(data.data).length === 0) {
Toast.fire({title:"Data Tidak Ditemukan",type:"error"});
}
else {
no = 1;
$("#status_billing tbody").html("");
data.data.map(function(o,i){
$("#status_billing tbody").append("<tr><td>"+no+"</td><td>"+o.tanggal+"</td><td>"+o.nomr+"</td><td>"+o.nobill+"<hr style=\"margin:0\">"+o.nonota+"</td><td>"+o.kode_tarif+"<hr style=\"margin:0\">"+o.uraian_tarif+"<hr style=\"margin:0\">"+o.tarifrs+"</td><td>"+o.petugas_entri+"</td><td>"+o.st_cara_bayar+"</td><td>"+o.verifikator+"</td><td>"+o.status_piutang+"</td><td>"+o.petugas_piutang+"</td><td>"+o.nama_penjamin+"</td><td>"+o.st_lunas+"</td><td>"+o.kasir+"</td></tr>");
no+=1;
})
$table.floatThead({
position: "absolute",
scrollContainer: true
});
}
},"json");
}
';
?>