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
64fc4a30
authored
2022-11-14 18:16:27 +0800
by
王聪
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
接口更新
1 parent
fef93cd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
src/pos/views.py
src/pos/views.py
View file @
64fc4a3
...
...
@@ -37,18 +37,18 @@ class NSCInvoiceView(GenericView):
@use_args
(
input_args
,
location
=
'data'
)
def
post
(
self
,
request
,
args
):
# interface_report mpos to ocr
content
=
args
.
get
(
'content'
,
{})
invoice_code
=
content
[
'invoiceCode'
]
invoice_number
=
content
[
'invoiceNumber'
]
issue_date
=
content
[
'issueDate'
]
buyer_name
=
content
[
'buyerName'
]
buyer_id
=
content
[
'buyerId'
]
vin
=
content
[
'vin'
]
dealer
=
content
[
'dealer'
]
price_with_vat
=
content
[
'priceWithVat'
]
price_no_vat
=
content
[
'priceNoVat'
]
price_in_capitals
=
content
[
'priceInCapitals'
]
vat
=
content
[
'vat'
]
vat_rate
=
content
[
'vatRate'
]
invoice_code
=
content
.
get
(
'invoiceCode'
,
''
)
invoice_number
=
content
.
get
(
'invoiceNumber'
,
''
)
issue_date
=
content
.
get
(
'issueDate'
,
None
)
buyer_name
=
content
.
get
(
'buyerName'
,
''
)
buyer_id
=
content
.
get
(
'buyerId'
,
0
)
vin
=
content
.
get
(
'vin'
,
''
)
dealer
=
content
.
get
(
'dealer'
,
''
)
price_with_vat
=
content
.
get
(
'priceWithVat'
,
0.0
)
price_no_vat
=
content
.
get
(
'priceNoVat'
,
0.0
)
price_in_capitals
=
content
.
get
(
'priceInCapitals'
,
''
)
vat
=
content
.
get
(
'vat'
,
0.0
)
vat_rate
=
content
.
get
(
'vatRate'
,
0.0
)
return
response
.
ok
()
...
...
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