dever 3 vuotta sitten
vanhempi
commit
adf6c6d9b1
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      app/cash/lib/Set.php

+ 3 - 0
app/cash/lib/Set.php

@@ -8,6 +8,9 @@ class Set
 {
     public function getCash($cash)
     {
+        if (!$cash || $cash <= 0) {
+            return 0;
+        }
         return round($cash, 2);
     }
     public function info($audit_type, $audit)