FIX_POLICYREPORTEXCEL

This commit is contained in:
sanjeev.p 2026-02-04 16:23:50 +05:30
parent 4787be58fe
commit c447a17b6d

View File

@ -199,10 +199,15 @@ class PolicyReportController extends Controller
AND pe.is_quick_quote = 0
AND pp.id IS NOT NULL
AND pp.created_on BETWEEN ? AND ?
AND pe.manager_id = ?
AND ins.id = ?";
AND pe.manager_id = ?";
$bindings = [$fromDate, $toDate, $managerId,$insurer_id ];
$bindings = [$fromDate, $toDate, $managerId ];
// Add insurer filter only if it's not empty
if (!empty($insurer_id)) {
$sql .= " AND ins.id = ?";
$bindings[] = $insurer_id;
}
$whereIn = implode(',', array_fill(0, count($statusValues), '?'));