export pdf
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
<!-- අලුතෙන් දාපු Single Export Buttons ටික -->
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-12 text-right">
|
||||
<button class="btn btn-danger" style="border-radius: 10px;">
|
||||
<button class="btn btn-danger" onclick="exportFullPdf('pdf')" style="border-radius: 10px;">
|
||||
<i class="fa fa-file-pdf-o"></i> Export PDF
|
||||
</button>
|
||||
<button class="btn btn-success" onclick="exportFullReport('excel')" style="border-radius: 10px;">
|
||||
@@ -278,5 +278,12 @@
|
||||
|
||||
window.location.href = exportUrl;
|
||||
}
|
||||
|
||||
function exportFullPdf(exportType) {
|
||||
var selectedDate = $('#report_date').val();
|
||||
|
||||
var exportUrl = "{{ url('/dailysalepaymentreportmodule/export_pdf') }}" + "?date=" + selectedDate + "&type=" + exportType;
|
||||
window.location.href = exportUrl;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user