Se agrega condicion

This commit is contained in:
Juan Pablo Vial
2025-04-30 10:37:57 -04:00
parent 2680f51167
commit eeb6f5bcd1

View File

@ -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;