diff --git a/app/src/Service/Valor.php b/app/src/Service/Valor.php index 2df3da9..7789e84 100644 --- a/app/src/Service/Valor.php +++ b/app/src/Service/Valor.php @@ -80,13 +80,16 @@ class Valor if (strlen($parts[0]) > 3) { // 1000.000 || 1,000.000 return true; } + if (strlen($parts[1]) < 3) { // #####.00 + return true; + } if (str_contains($value, ',')) { if (strpos($value, ',') > strpos($value, '.')) { // 1.000,000 return false; } return true; // 1,000.000 } - if ((int) $parts[0] < 10) { + if ((int) $parts[0] < 10) { // 1.000 return true; } return false;