diff --git a/app/Controllers/Subscription.php b/app/Controllers/Subscription.php index 499dd110..f756e390 100644 --- a/app/Controllers/Subscription.php +++ b/app/Controllers/Subscription.php @@ -48,6 +48,7 @@ class Subscription extends BaseController //print_r($data);die(); $this->render_page('subscription_form', $data); } + // Subscription Controller (Subscription.php) public function add_subscription() { helper('session'); diff --git a/app/Views/invoice_pdf_template.php b/app/Views/invoice_pdf_template.php index 966bfac6..c2af28d4 100644 --- a/app/Views/invoice_pdf_template.php +++ b/app/Views/invoice_pdf_template.php @@ -7,7 +7,7 @@ font-family: 'Times New Roman', Times, sans-serif; - font-size: 14px; /* Change this value to your desired font size */ + font-size: 12px; /* Change this value to your desired font size */ } /* Style for the main table with border */ @@ -155,15 +155,14 @@ td.invoice-number {
| Invoice # | -= $value->invoice_number ?> | +Invoice # = $value->invoice_number ?> | +|
|---|---|---|---|
| Invoice Date | - invoice_date is in yyyy-mm-dd format $invoiceDateParts = explode('-', $value->invoice_date); if (count($invoiceDateParts) === 3) { @@ -172,25 +171,28 @@ if (count($invoiceDateParts) === 3) { $formattedInvoiceDate = 'Invalid Date'; // Handle invalid dates gracefully } ?> +Invoice Date : = $formattedInvoiceDate ?> | + -= $formattedInvoiceDate ?> | +|
| Order Number | -= $value->order_number ?> | +Order Number : = $value->order_number ?> | +|
| Due Date | - due_date); + due_date); if (count($invoiceDateParts) === 3) { $formattedDueDate = $invoiceDateParts[2] . '/' . $invoiceDateParts[1] . '/' . $invoiceDateParts[0]; } else { $formattedDueDate = 'Invalid Date'; // Handle invalid dates gracefully } ?> +Due Date : = $formattedDueDate ?> | + -= $formattedDueDate ?> | +