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