Убрать лишние символы при отображении отчетностей

This commit is contained in:
Dmitry
2026-04-08 15:35:21 +00:00
parent a246648340
commit 4484126e8f
4 changed files with 14 additions and 4 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ module ReportParsers
class Form11Parser < BaseParser
SHEET_NAME = 'Бухгалтерский баланс'
FORM_CODE = '1.1'
# Add line codes or names that should be skipped during parsing.
IGNORED_KEYS = [2].freeze
def call
@@ -27,7 +26,7 @@ module ReportParsers
end
all_rows = (header_row + 1).upto(sheet.last_row).filter_map do |row|
line_name = read_cell(sheet, row, columns[:name_column])
line_name = normalize_line_name(read_cell(sheet, row, columns[:name_column]))
line_code = read_cell(sheet, row, columns[:code_column]).to_s.strip.presence
next if ignored_row?(line_name, line_code)