b08e11fe by 周伟奇

fix ms over

1 parent 8342bc13
...@@ -103,6 +103,9 @@ class BSWorkbook(Workbook): ...@@ -103,6 +103,9 @@ class BSWorkbook(Workbook):
103 sheet_header_info.setdefault(ws.title, {}).setdefault(consts.HEADER_KEY, first_row) 103 sheet_header_info.setdefault(ws.title, {}).setdefault(consts.HEADER_KEY, first_row)
104 for idx, header_value in enumerate(first_row): 104 for idx, header_value in enumerate(first_row):
105 header_col = self.get_header_col(header_value, classify) 105 header_col = self.get_header_col(header_value, classify)
106 if classify == consts.MS_CLASSIFY and header_col == consts.OVER_KEY and \
107 header_value == '账户余额现转标志' and not first_row[idx - 1]:
108 idx -= 1
106 if header_col is not None: 109 if header_col is not None:
107 header_col_list.append((idx, header_col)) 110 header_col_list.append((idx, header_col))
108 111
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!