export pdf

This commit is contained in:
SUM2046
2026-07-03 17:38:49 +05:30
parent 26273d92c2
commit 58d1555743
4 changed files with 320 additions and 3 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" onclick="exportFullReport('pdf')" 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