From 9b5417f7866b7a82c87d08447277541e31b2ad4a Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Thu, 26 Dec 2024 19:16:10 +0530 Subject: [PATCH] FIX_OFFLINE INVOICE LISTING PAGE --- app/Controllers/Invoice.php | 2 +- app/Views/invoice_pdf_template.php | 18 ++++++++++++------ app/Views/offline_invoice_list.php | 2 +- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index 212e4f1b..5f8a636a 100755 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -1063,7 +1063,7 @@ public function create_or_update_subscription($invoice_id,$invoice_status, $msg_ // Load view with data // $html = view('invoice_print_preview_template', ['data' => $data, 'invoiceItems' => $invoiceItems,'business'=>$business, 'invoice_type' => $invoice_type, 'invoiceTerms' => $data, 'status' => $status]); $html = view('invoice_pdf_template', ['data' => $data, 'invoiceItems' => $invoiceItems, 'invoice_type' => $invoice_type,'business' => $business, 'invoiceTerms' => $data, 'status' => $status]); - + // dd($html);die; // Return HTML content echo $html; } diff --git a/app/Views/invoice_pdf_template.php b/app/Views/invoice_pdf_template.php index 78a872be..f2c09250 100755 --- a/app/Views/invoice_pdf_template.php +++ b/app/Views/invoice_pdf_template.php @@ -171,7 +171,8 @@ color: #989898; } - table td{ + + #pdfPreviewModal table td{ font-size: 10px; } table h4{ @@ -186,19 +187,24 @@ margin-bottom: 0rem; } @media screen { - body, .business-address-container,table.addresses-table, table.footer-table, table td, table.invoice-related-table th, table.invoice-related-table td { + .business-address-container,table.addresses-table, table.footer-table, table td, table.invoice-related-table th, table.invoice-related-table td { font-family:'Calibri'; } } @media print { body{ - font-family:"Calibri"; - + font-family:'Times-Roman', sans-serif; + font-size: 10px; } table td, table.invoice-related-table th, table.invoice-related-table td{ - font-family:"Calibri"; + font-family:'Times-Roman', sans-serif; + font-size: 10px; } + .terms-container{ + margin-top:30px!important; + } + } @@ -416,7 +422,7 @@ -
+
diff --git a/app/Views/offline_invoice_list.php b/app/Views/offline_invoice_list.php index e10076c3..154b65dc 100755 --- a/app/Views/offline_invoice_list.php +++ b/app/Views/offline_invoice_list.php @@ -19,7 +19,7 @@ margin: 1.75rem auto; } #pdfPreviewModal .modal-body { - font-family: 'Times New Roman', Times, serif; + font-family: 'Calibri', Times, serif; font-size: 8pt; } .table-responsive{