FIX_BUG
This commit is contained in:
parent
3fda0c6839
commit
12f64baedf
@ -2521,10 +2521,9 @@ class ExcelExportController extends ResourceController
|
|||||||
WHEN per.is_data_accuracy_checked = 0 THEN 'To Verify'
|
WHEN per.is_data_accuracy_checked = 0 THEN 'To Verify'
|
||||||
ELSE 'Verified'
|
ELSE 'Verified'
|
||||||
END AS verification_status,
|
END AS verification_status,
|
||||||
CASE
|
CASE
|
||||||
WHEN per.created_at IS NULL
|
WHEN per.status = 'Closed' THEN '-'
|
||||||
THEN 0
|
ELSE CONCAT(DATEDIFF(CURDATE(), per.created_at),' days')
|
||||||
ELSE DATEDIFF(CURDATE(), DATE(per.created_at))
|
|
||||||
END AS pending_days,
|
END AS pending_days,
|
||||||
per.endorsement_premium,
|
per.endorsement_premium,
|
||||||
per.commission_amount,
|
per.commission_amount,
|
||||||
|
|||||||
@ -1625,10 +1625,11 @@ class PolicyController extends ResourceController
|
|||||||
$header = ['Agent Code', 'Policy Number', 'Payout Amount'];
|
$header = ['Agent Code', 'Policy Number', 'Payout Amount'];
|
||||||
// Example rows — clients replace with real data or delete before upload.
|
// Example rows — clients replace with real data or delete before upload.
|
||||||
$dataRows = [
|
$dataRows = [
|
||||||
['AG001', 'YOUR-POLICY-NUMBER-1', '1500.00'],
|
["AG001", "YOUR-POLICY-NUMBER-1", "1500.00"],
|
||||||
['AG002', 'YOUR-POLICY-NUMBER-2', ''],
|
["AG002", "YOUR-POLICY-NUMBER-2", ""],
|
||||||
|
["AG003", "'123456789012345678901234567890", ''],
|
||||||
];
|
];
|
||||||
$title = 'Sample: fill Payout Amount, keep Agent Code matching the policy, upload via policy/uploadCommissionExcel';
|
$title = 'Sample: Fill Payout Amount, keep Agent Code matching the policy, upload via policy/uploadCommissionExcel';
|
||||||
$fileName = 'commission_payout_upload_sample.xlsx';
|
$fileName = 'commission_payout_upload_sample.xlsx';
|
||||||
|
|
||||||
$this->streamPendingCommissionExcel($header, $dataRows, $title, $fileName);
|
$this->streamPendingCommissionExcel($header, $dataRows, $title, $fileName);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user