FIX_Operator Changes
This commit is contained in:
parent
a09398032a
commit
e85e9e1d30
@ -1589,7 +1589,7 @@ class PolicyController extends ResourceController
|
||||
foreach ($rows as $row) {
|
||||
$dataRows[] = [
|
||||
$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'];
|
||||
// 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", ""],
|
||||
];
|
||||
$title = 'Sample: Fill Payout Amount, keep Agent Code matching the policy, upload via policy/uploadCommissionExcel';
|
||||
$fileName = 'commission_payout_upload_sample.xlsx';
|
||||
@ -1814,7 +1814,7 @@ class PolicyController extends ResourceController
|
||||
|
||||
// 🔥 Best Practice (Final Version)
|
||||
// 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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user