GWM : issue fixed

This commit is contained in:
Gowtham M 2026-03-04 19:37:08 +05:30
parent f26a0e4fcf
commit 5925a5aaaf

View File

@ -1559,9 +1559,11 @@ class ExcelExportController extends ResourceController
foreach ($data as $row) {
$indexedRow = array_values($row);
$lastIndex = count($indexedRow) - 1;
$totalSum += (float) $indexedRow[$lastIndex];
unset($indexedRow[$lastIndex]);
$totalSum += (float) $row['commission_amount'];
// $lastIndex = count($indexedRow) - 1;
// $totalSum += (float) $indexedRow[$lastIndex];
// unset($indexedRow[$lastIndex]);
$finalData[] = array_merge([$serialNo++], $indexedRow);
}