FIX_Operator Changes
This commit is contained in:
parent
a09398032a
commit
e85e9e1d30
@ -1589,7 +1589,7 @@ class PolicyController extends ResourceController
|
|||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
$dataRows[] = [
|
$dataRows[] = [
|
||||||
$row['agent_code'] ?? '',
|
$row['agent_code'] ?? '',
|
||||||
"'" . ($row['policy_number'] ?? ''), // 👈 force text
|
"`" . ($row['policy_number'] ?? ''), // 👈 force text
|
||||||
'',
|
'',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -1625,8 +1625,8 @@ 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", ""],
|
||||||
];
|
];
|
||||||
$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';
|
||||||
@ -1814,7 +1814,7 @@ class PolicyController extends ResourceController
|
|||||||
|
|
||||||
// 🔥 Best Practice (Final Version)
|
// 🔥 Best Practice (Final Version)
|
||||||
// safe removal: single quote from the beginning of the policy number
|
// safe removal: single quote from the beginning of the policy number
|
||||||
if (isset($policyNumber[0]) && $policyNumber[0] === "'") {
|
if (isset($policyNumber[0]) && $policyNumber[0] === "`") {
|
||||||
$policyNumber = substr($policyNumber, 1);
|
$policyNumber = substr($policyNumber, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user