diff --git a/app/Controllers/PolicyController.php b/app/Controllers/PolicyController.php index 5f0ab17..1afe3b6 100644 --- a/app/Controllers/PolicyController.php +++ b/app/Controllers/PolicyController.php @@ -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); }