<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2024-07-15 15:00:28 --> Severity: error --> Exception: Call to a member function set_rules() on null /home/shagoon/public_html/application/controllers/gc/Products.php 355
ERROR - 2024-07-15 16:13:05 --> Query error: Unknown column 'Kp1.product_name' in 'field list' - Invalid query: SELECT `Kp1`.`product_name` as `dispenser`, `b`.`product_id` as `dispenser_id`, `b`.`sales_type`, `u`.`first_name`, `u`.`last_name`, `a`.`dispenser_refill_details_id`, `c`.`customer_name`, `p`.`dispenser_name`, `p`.`product_name`, `b`.`dispenser_quantity`, `a`.`refill_location`, `b`.`installation_date`, `a`.`refill_date`, `a`.`next_refill_date`, `a`.`duration_days`, `a`.`comments`, `a`.`product_id`, `a`.`dispenser_sales_id`, `b`.`dispenser_sales_id`, `b`.`product_id`, `b`.`customer_id`, `p`.`product_id`, `c`.`customer_id`
FROM `dispenser_sales_transaction` as `b`
INNER JOIN `refill_sales_transaction` as `a` ON `b`.`dispenser_sales_id` = `a`.`dispenser_sales_id`
LEFT JOIN `product` as `p` ON `a`.`product_id` = `p`.`product_id`
LEFT JOIN `product` as `p1` ON `b`.`product_id` = `p1`.`product_id`
LEFT JOIN `customer` as `c` ON `c`.`customer_id` = `b`.`customer_id`
LEFT JOIN `users` as `u` ON `u`.`user_id` = `b`.`sales_person_id`
WHERE `b`.`company_branch_id` = '1'
AND `a`.`stop_refill` = 'no'
AND `a`.`next_has_been_refilled` = 'no'
AND `b`.`dispenser_quantity` > '0'
AND `a`.`next_refill_date` BETWEEN NOW() AND DATE_ADD( NOW( ) , INTERVAL 7 DAY )
AND `b`.`company_branch_id` IN('1')
GROUP BY `b`.`dispenser_sales_id`
ORDER BY `next_refill_date` ASC
 LIMIT 30
ERROR - 2024-07-15 16:14:59 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at /home/shagoon/public_html/application/helpers/common_function_helper.php:732) /home/shagoon/public_html/application/views/gc/common/header.php 2
ERROR - 2024-07-15 16:14:59 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at /home/shagoon/public_html/application/helpers/common_function_helper.php:732) /home/shagoon/public_html/application/views/gc/common/header.php 3
ERROR - 2024-07-15 16:14:59 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at /home/shagoon/public_html/application/helpers/common_function_helper.php:732) /home/shagoon/public_html/application/views/gc/common/header.php 4
ERROR - 2024-07-15 16:14:59 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at /home/shagoon/public_html/application/helpers/common_function_helper.php:732) /home/shagoon/public_html/application/views/gc/common/header.php 5
ERROR - 2024-07-15 16:18:36 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at /home/shagoon/public_html/application/helpers/common_function_helper.php:732) /home/shagoon/public_html/application/views/gc/common/header.php 2
ERROR - 2024-07-15 16:18:36 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at /home/shagoon/public_html/application/helpers/common_function_helper.php:732) /home/shagoon/public_html/application/views/gc/common/header.php 3
ERROR - 2024-07-15 16:18:36 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at /home/shagoon/public_html/application/helpers/common_function_helper.php:732) /home/shagoon/public_html/application/views/gc/common/header.php 4
ERROR - 2024-07-15 16:18:36 --> Severity: Warning --> Cannot modify header information - headers already sent by (output started at /home/shagoon/public_html/application/helpers/common_function_helper.php:732) /home/shagoon/public_html/application/views/gc/common/header.php 5
