feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
310 changed files with 800 additions and 11858 deletions
Showing only changes of commit eeb6f5bcd1 - Show all commits

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;