SU2-33 | Фикс критических и серьёзных ошибок, удаление/перезагрузка организации, пагинация, favicon

This commit is contained in:
Dmitry
2026-04-21 07:54:59 +00:00
parent a1cbddf4e2
commit 136de5f238
12 changed files with 127 additions and 28 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ module OrganisationsHelper
end
def parse_number(value)
return 0 if value.empty? || ['-', '(-)', 'X'].include?(value)
return 0 if value.nil? || value.empty? || ['-', '(-)', 'X'].include?(value)
negative = value.start_with?('(') && value.end_with?(')')
value = value.tr('()', '') if negative
value = value.delete(' ')