shish 3 lat temu
rodzic
commit
fa8a01a8b5
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      app-pt/controllers/TestController.php

+ 6 - 0
app-pt/controllers/TestController.php

@@ -273,6 +273,12 @@ class TestController extends PublicController
                 }
                 }
             }
             }
         }
         }
+        $total = 0;
+        foreach ($incomeList as $i) {
+            $current = $i['amount'] ?? 0;
+            $total = bcadd($current, $total, 2);
+        }
+        echo ' '.$total;
         print_r($incomeList);
         print_r($incomeList);
         die;
         die;
     }
     }