Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ee9fa268
authored
2020-10-22 12:41:03 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix result_col
1 parent
2a723026
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
ee9fa26
...
...
@@ -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.同一天相同进出账高亮
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment