99390121 by 周伟奇

fix bug

1 parent fba048bf
...@@ -380,13 +380,14 @@ class BSWorkbook(Workbook): ...@@ -380,13 +380,14 @@ class BSWorkbook(Workbook):
380 if borrow_cell_value in consts.BORROW_OUTLAY_SET: 380 if borrow_cell_value in consts.BORROW_OUTLAY_SET:
381 amount_cell.value = -amount_cell.value 381 amount_cell.value = -amount_cell.value
382 amount_cell.number_format = numbers.FORMAT_NUMBER_00 382 amount_cell.number_format = numbers.FORMAT_NUMBER_00
383 same_amount_mapping = amount_mapping.get(date_cell.value, {}) 383 if date_cell is not None:
384 fill_rows = same_amount_mapping.get(-amount_cell.value) 384 same_amount_mapping = amount_mapping.get(date_cell.value, {})
385 if fill_rows: 385 fill_rows = same_amount_mapping.get(-amount_cell.value)
386 amount_fill_row.add(amount_cell.row) 386 if fill_rows:
387 amount_fill_row.update(fill_rows) 387 amount_fill_row.add(amount_cell.row)
388 amount_mapping.setdefault(date_cell.value, {}).setdefault( 388 amount_fill_row.update(fill_rows)
389 amount_cell.value, []).append(amount_cell.row) 389 amount_mapping.setdefault(date_cell.value, {}).setdefault(
390 amount_cell.value, []).append(amount_cell.row)
390 391
391 # 3.5.核对结果 392 # 3.5.核对结果
392 if amount_success and over_success and amount_cell.row > 2: 393 if amount_success and over_success and amount_cell.row > 2:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!