dever %!s(int64=3) %!d(string=hai) anos
pai
achega
adf6c6d9b1
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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)