FIX_date_issue_fixes
This commit is contained in:
parent
9e98aa9a69
commit
d98a50c5c2
@ -47,6 +47,18 @@ class EndorsementController extends ResourceController
|
|||||||
|
|
||||||
$builder = $this->EndorsementModel
|
$builder = $this->EndorsementModel
|
||||||
->select('partner_endorsement_request.*,
|
->select('partner_endorsement_request.*,
|
||||||
|
CASE
|
||||||
|
WHEN partner_endorsement_request.policy_start_date = "0000-00-00"
|
||||||
|
OR YEAR(partner_endorsement_request.policy_start_date) < 2000
|
||||||
|
THEN NULL
|
||||||
|
ELSE DATE_FORMAT(partner_endorsement_request.policy_start_date, "%Y-%m-%d")
|
||||||
|
END as policy_start_date,
|
||||||
|
CASE
|
||||||
|
WHEN partner_endorsement_request.policy_end_date = "0000-00-00"
|
||||||
|
OR YEAR(partner_endorsement_request.policy_end_date) < 2000
|
||||||
|
THEN NULL
|
||||||
|
ELSE DATE_FORMAT(partner_endorsement_request.policy_end_date, "%Y-%m-%d")
|
||||||
|
END as policy_end_date,
|
||||||
i.name as insurer_name,
|
i.name as insurer_name,
|
||||||
i.short_name as insurer_short_name,
|
i.short_name as insurer_short_name,
|
||||||
ib.branch_name as insurer_branch,
|
ib.branch_name as insurer_branch,
|
||||||
|
|||||||
@ -1546,8 +1546,8 @@ class ExcelExportController extends ResourceController
|
|||||||
'Insured Name',
|
'Insured Name',
|
||||||
'Insurer',
|
'Insurer',
|
||||||
'Broker',
|
'Broker',
|
||||||
'Contact Person',
|
|
||||||
'Partner Code And Name',
|
'Partner Code And Name',
|
||||||
|
'Contact Person',
|
||||||
'Remarks',
|
'Remarks',
|
||||||
'Is Financial',
|
'Is Financial',
|
||||||
'Endorsement Premium Amount',
|
'Endorsement Premium Amount',
|
||||||
@ -2480,12 +2480,12 @@ class ExcelExportController extends ResourceController
|
|||||||
per.insured_name,
|
per.insured_name,
|
||||||
I.name AS insurer_name,
|
I.name AS insurer_name,
|
||||||
pb.name AS broker_name,
|
pb.name AS broker_name,
|
||||||
|
CONCAT(pa.agent_code, ' - ', pa.name) AS agent_details,
|
||||||
per.contact_person,
|
per.contact_person,
|
||||||
CONCAT(pa.agent_code, ' - ', pa.name) AS agent_details
|
|
||||||
per.endorsement_description,
|
per.endorsement_description,
|
||||||
per.financia_or_non_financial,
|
per.financia_or_non_financial,
|
||||||
per.endorsement_premium,
|
per.endorsement_premium,
|
||||||
per.commission_amount,
|
per.commission_amount
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user