ee9fa268 by 周伟奇

fix result_col

1 parent 2a723026
......@@ -299,6 +299,7 @@ class BSWorkbook(Workbook):
add_col = ['金额', '核对结果']
amount_cell_idx = len(header)
header.extend(add_col)
result_idx = len(header) - 1
tmp_ws = self.create_sheet('tmp_ws')
for month in sorted(month_mapping.keys()):
......@@ -392,10 +393,10 @@ class BSWorkbook(Workbook):
amount_col_letter = get_column_letter(amount_cell_idx + 1)
over_col_letter = get_column_letter(over_cell_idx + 1)
if is_reverse:
rows[consts.RESULT_IDX].value = '=IF({2}{0}=ROUND(SUM({2}{1},{3}{0}),4), "{4}", "{5}")'.format(
rows[result_idx].value = '=IF({2}{0}=ROUND(SUM({2}{1},{3}{0}),4), "{4}", "{5}")'.format(
amount_cell.row - 1, amount_cell.row, over_col_letter, amount_col_letter, *self.proof_res)
else:
rows[consts.RESULT_IDX].value = '=IF({2}{0}=ROUND(SUM({2}{1},{3}{0}),4), "{4}", "{5}")'.format(
rows[result_idx].value = '=IF({2}{0}=ROUND(SUM({2}{1},{3}{0}),4), "{4}", "{5}")'.format(
amount_cell.row, amount_cell.row - 1, over_col_letter, amount_col_letter, *self.proof_res)
# 3.6.同一天相同进出账高亮
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!