From ee84a20794a71e1551c8de7ed717343b6b6b69f6 Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Sat, 3 Jan 2026 15:49:03 +0530 Subject: [PATCH] invoice issue : GWM --- app/Controllers/InvoiceController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Controllers/InvoiceController.php b/app/Controllers/InvoiceController.php index 469312f..16594d1 100644 --- a/app/Controllers/InvoiceController.php +++ b/app/Controllers/InvoiceController.php @@ -262,7 +262,8 @@ class InvoiceController extends ResourceController ->join('partner_agent pa', 'pa.id = pe.agent_id', 'left') ->where('partner_policy.is_active', 1) ->where('partner_policy.commission_amount > 0') - ->where('partner_policy.is_data_accuracy_checked', 1); + ->where('partner_policy.is_data_accuracy_checked', 1) + ->where('partner_policy.manager_id', $input['manager_id']); // Apply agent_id filter (supports multiple agents) if (!empty($input['agent_id'])) {