From d43e57ddda999fd1bc85e4d75fe9bb21520fa701 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Thu, 2 Nov 2023 15:45:34 +0530 Subject: [PATCH] Invoice PDF : ps --- app/Controllers/Scheme.php | 2 +- app/Views/business_form.php | 4 +- app/Views/invoice_pdf_template.php | 24 ++++++----- app/Views/scheme_form.php | 9 +--- app/Views/scheme_list.php | 68 +++++++++++++++--------------- 5 files changed, 51 insertions(+), 56 deletions(-) diff --git a/app/Controllers/Scheme.php b/app/Controllers/Scheme.php index ec40d197..3909c39a 100644 --- a/app/Controllers/Scheme.php +++ b/app/Controllers/Scheme.php @@ -133,7 +133,7 @@ class Scheme extends BaseController else { // It's an update operation $isactive = $this->request->getPost('isactive'); - $data['isactive'] = ($isactive == 'on') ? 1 : 0; + $data['isactive'] = ($isactive) ? 1 : 0; $data['updated_by'] = $session_uid; $SchemeModel->update($scheme_id, $data); diff --git a/app/Views/business_form.php b/app/Views/business_form.php index 5e0100d0..6ab7e7a6 100644 --- a/app/Views/business_form.php +++ b/app/Views/business_form.php @@ -82,9 +82,7 @@
- +
diff --git a/app/Views/invoice_pdf_template.php b/app/Views/invoice_pdf_template.php index 4bd1529c..82c88e7c 100644 --- a/app/Views/invoice_pdf_template.php +++ b/app/Views/invoice_pdf_template.php @@ -311,17 +311,19 @@ if (count($invoiceDateParts) === 3) { - -
-

Thank you!



- notes)): ?> -

Notes: notes ?>



- - - -

terms ?>



- -
+
+

Thank you!

+ notes)){ ?> +

Notes: notes; ?>

+ + terms)) { ?> +
+                        terms ?>
+                    
+ +
diff --git a/app/Views/scheme_form.php b/app/Views/scheme_form.php index 37bedb0d..dbe4e4a4 100644 --- a/app/Views/scheme_form.php +++ b/app/Views/scheme_form.php @@ -51,14 +51,7 @@ - +
-
- - getFlashdata('error')) : ?> - - + getFlashdata('success')) : ?> + + + getFlashdata('error')) : ?> + +
@@ -39,18 +39,18 @@ - - - - - - - - " class="edit-button"> - - - - + + + + + + + + " class="edit-button"> + + + + @@ -60,10 +60,12 @@
\ No newline at end of file