From 2df4cedf114ad62d7ca2fb4c33483655cd885fe6 Mon Sep 17 00:00:00 2001 From: heama Date: Thu, 28 Sep 2023 18:31:07 +0530 Subject: [PATCH] subscription module --- app/Controllers/Subscription.php | 1 + app/Views/invoice_pdf_template.php | 26 ++++++++++++++------------ app/Views/print_addresses_form.php | 2 +- app/Views/template/header.php | 7 +------ 4 files changed, 17 insertions(+), 19 deletions(-) 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_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 } ?> + + - + - - + + - - due_date); + due_date); if (count($invoiceDateParts) === 3) { $formattedDueDate = $invoiceDateParts[2] . '/' . $invoiceDateParts[1] . '/' . $invoiceDateParts[0]; } else { $formattedDueDate = 'Invalid Date'; // Handle invalid dates gracefully } ?> + + - + diff --git a/app/Views/print_addresses_form.php b/app/Views/print_addresses_form.php index c5c83f83..6c9ae392 100644 --- a/app/Views/print_addresses_form.php +++ b/app/Views/print_addresses_form.php @@ -82,7 +82,7 @@ Barcode - + diff --git a/app/Views/template/header.php b/app/Views/template/header.php index 2af77f23..df679a7b 100644 --- a/app/Views/template/header.php +++ b/app/Views/template/header.php @@ -178,12 +178,7 @@ Subscription -
  • - "> - - Address Print - -
  • +
  • ">
  • Invoice #invoice_number ?>Invoice # invoice_number ?>
    Invoice DateInvoice Date :
    Order Numberorder_number ?>Order Number : order_number ?>
    Due DateDue Date :