From 8cd03cd0d4775fe2aaf50e2b679723688180dc81 Mon Sep 17 00:00:00 2001 From: heama Date: Tue, 10 Oct 2023 15:39:24 +0530 Subject: [PATCH 1/2] business --- app/Views/invoice_form.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Views/invoice_form.php b/app/Views/invoice_form.php index 09518e48..5b4aa5e6 100644 --- a/app/Views/invoice_form.php +++ b/app/Views/invoice_form.php @@ -260,8 +260,9 @@
- -
From d80a8d9c043885e5a1a41b262a718fee42effd89 Mon Sep 17 00:00:00 2001 From: heama Date: Tue, 10 Oct 2023 15:53:06 +0530 Subject: [PATCH 2/2] customer --- app/Models/CustomerModel.php | 4 ++-- app/Views/customer_form.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Models/CustomerModel.php b/app/Models/CustomerModel.php index 1c10c68e..e3c07561 100644 --- a/app/Models/CustomerModel.php +++ b/app/Models/CustomerModel.php @@ -102,11 +102,11 @@ public function getSubscriberDataByCustomerId($customerId) { // Assuming 'subscription' is the table name where subscriber data is stored. $builder = $this->db->table('subscription'); - $builder->join('schemes', 'schemes.scheme_id = subscription.scheme_id'); + $builder->join('books', 'books.book_id = subscription.scheme_id'); // Define the columns you want to select from the subscription table. - $builder->select('sub_id, to_subscription, from_subscription,schemes.scheme_name'); + $builder->select('subscription.*,books.title'); // Add a where condition to filter results based on customer ID. $builder->where('customer_id', $customerId); diff --git a/app/Views/customer_form.php b/app/Views/customer_form.php index fef4fb65..96589866 100644 --- a/app/Views/customer_form.php +++ b/app/Views/customer_form.php @@ -321,14 +321,14 @@ Subscription Name - Duration - Amount + From Subscription + To Subscription - scheme_name ?> + title ?> from_subscription ?> to_subscription ?>