export pdf

This commit is contained in:
SUM2046
2026-07-05 12:51:18 +05:30
parent 640ef324b3
commit 720752a781
4 changed files with 328 additions and 6 deletions

View File

@@ -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