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'
|
||||
ELSE 'Verified'
|
||||
END AS verification_status,
|
||||
CASE
|
||||
WHEN per.created_at IS NULL
|
||||
THEN 0
|
||||
ELSE DATEDIFF(CURDATE(), DATE(per.created_at))
|
||||
CASE
|
||||
WHEN per.status = 'Closed' THEN '-'
|
||||
ELSE CONCAT(DATEDIFF(CURDATE(), per.created_at),' days')
|
||||
END AS pending_days,
|
||||
per.endorsement_premium,
|
||||
per.commission_amount,
|
||||
|
||||
@ -1625,10 +1625,11 @@ class PolicyController extends ResourceController
|
||||
$header = ['Agent Code', 'Policy Number', 'Payout Amount'];
|
||||
// Example rows — clients replace with real data or delete before upload.
|
||||
$dataRows = [
|
||||
['AG001', 'YOUR-POLICY-NUMBER-1', '1500.00'],
|
||||
['AG002', 'YOUR-POLICY-NUMBER-2', ''],
|
||||
["AG001", "YOUR-POLICY-NUMBER-1", "1500.00"],
|
||||
["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';
|
||||
|
||||
$this->streamPendingCommissionExcel($header, $dataRows, $title, $fileName);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user