FIX_buiness dashboard add isactive 1 insurer wise
This commit is contained in:
parent
a2c572f104
commit
d5a1272ff4
@ -614,7 +614,7 @@ class DashboardController extends ResourceController
|
|||||||
");
|
");
|
||||||
|
|
||||||
$builder->join('partner_quotation pq', 'pq.id = pp.quotation_id', 'left');
|
$builder->join('partner_quotation pq', 'pq.id = pp.quotation_id', 'left');
|
||||||
$builder->join('insurers i', 'i.id = pq.insurer_id', 'left');
|
$builder->join('insurers i', 'i.id = pq.insurer_id and i.is_active = 1', 'left');
|
||||||
|
|
||||||
$builder->where("
|
$builder->where("
|
||||||
pp.created_on >= DATE_FORMAT(DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH), '%Y-%m-01')
|
pp.created_on >= DATE_FORMAT(DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH), '%Y-%m-01')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user