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