FIX_POLICYREPORTEXCEL
This commit is contained in:
parent
4787be58fe
commit
c447a17b6d
@ -199,10 +199,15 @@ class PolicyReportController extends Controller
|
|||||||
AND pe.is_quick_quote = 0
|
AND pe.is_quick_quote = 0
|
||||||
AND pp.id IS NOT NULL
|
AND pp.id IS NOT NULL
|
||||||
AND pp.created_on BETWEEN ? AND ?
|
AND pp.created_on BETWEEN ? AND ?
|
||||||
AND pe.manager_id = ?
|
AND pe.manager_id = ?";
|
||||||
AND ins.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), '?'));
|
$whereIn = implode(',', array_fill(0, count($statusValues), '?'));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user