Se agrega condicion
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user