]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
feat(dashboard): add thousands separator to sales and plan columns origin/feature_filippov_ERP-235_add_MP_filter
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Thu, 19 Feb 2026 09:30:10 +0000 (12:30 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Thu, 19 Feb 2026 09:30:10 +0000 (12:30 +0300)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
erp24/views/dashboard/sales.php

index 6d0c45b160617c1b67ebb4f3719c83ea0b3ea1ce..2880f5b1448c4da724331699360784436663e3b1 100755 (executable)
@@ -261,8 +261,8 @@ foreach ($sales as $key => $arr) {
         <td>" . $sales_store_date1 . "</td>
         <td>" . $konv . "%</td>
         <td>" . $sales_store_summ_date1 . "</td>
-        <td>" . $arr["summ"] . "</td>
-        <td>" . $arr["plan"] . "</td>
+        <td>" . number_format((float)$arr["summ"], 0, '.', ' ') . "</td>
+        <td>" . number_format((int)$arr["plan"], 0, '.', ' ') . "</td>
         <td>" . $arr["percent"] . "%</td>
         <td>" . $adminRes . "</td>
         <td>+" . $new_client_date1 . " = $konvNew%</td>
@@ -287,7 +287,7 @@ if (!empty($plan)) {
 }
 
 
-echo"<tr class=\"bg-success\"><th>Итого</th><th colspan=7>$sales_summ_all </th></tr>";
+echo"<tr class=\"bg-success\"><th>Итого</th><th colspan=7>" . number_format((float)$sales_summ_all, 0, '.', ' ') . "</th></tr>";
 
 
 echo"</tbody></table></div>";