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
6938253e
authored
2020-11-12 11:57:40 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
31d69c11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/apps/doc/ocr/wb.py
src/apps/doc/ocr/wb.py
View file @
6938253
...
...
@@ -465,13 +465,13 @@ class BSWorkbook(Workbook):
if
borrow_cell_value
in
consts
.
BORROW_OUTLAY_SET
:
amount_cell
.
value
=
-
amount_cell
.
value
amount_cell
.
number_format
=
numbers
.
FORMAT_NUMBER_00
if
date_cell
is
not
None
:
same_amount_mapping
=
amount_mapping
.
get
(
date_cell
.
value
,
{})
if
date_cell
is
not
None
and
isinstance
(
date_cell_value
,
str
)
:
same_amount_mapping
=
amount_mapping
.
get
(
date_cell
_value
[:
10
]
,
{})
fill_rows
=
same_amount_mapping
.
get
(
-
amount_cell
.
value
)
if
fill_rows
:
amount_fill_row
.
add
(
amount_cell
.
row
)
amount_fill_row
.
update
(
fill_rows
)
amount_mapping
.
setdefault
(
date_cell
.
value
,
{})
.
setdefault
(
amount_mapping
.
setdefault
(
date_cell
_value
[:
10
]
,
{})
.
setdefault
(
amount_cell
.
value
,
[])
.
append
(
amount_cell
.
row
)
# 3.5.核对结果
...
...
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