FIX_Operator Changes

This commit is contained in:
sanjeev.p 2026-04-16 17:36:24 +05:30
parent a09398032a
commit e85e9e1d30

View File

@ -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);
} }