Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amazon_reports
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
common
amazon_reports
Commits
f947f988
Commit
f947f988
authored
Dec 11, 2024
by
邱阿朋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d402af12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
.gitignore
.gitignore
+2
-4
payment.exe
dist/payment.exe
+0
-0
payment.py
src/payment.py
+3
-2
No files found.
.gitignore
View file @
f947f988
...
@@ -2,13 +2,11 @@
...
@@ -2,13 +2,11 @@
.vscode
.vscode
.venv
.venv
*.pyc
*.pyc
Return_Summary.xls
*.xls
ContraCogsInvoices.xls
Payments.xlsx
return_goods
return_goods
spa
spa
refund
refund
*.xlsx
*.xlsx
build
build
*.spec
*.spec
payment
payment
\ No newline at end of file
dist/payment.exe
View file @
f947f988
No preview for this file type
src/payment.py
View file @
f947f988
...
@@ -76,7 +76,7 @@ def export_list_read_data():
...
@@ -76,7 +76,7 @@ def export_list_read_data():
return
merged_df
return
merged_df
def
invoice_details
(
invoice_number
,
last_two
,
last_three
):
def
invoice_details
(
invoice_number
,
last_two
,
last_three
):
if
len
(
invoice_number
)
>
8
:
if
len
(
invoice_number
)
>
8
:
# 检查后两位是否在测试列表中
# 检查后两位是否在测试列表中
if
last_two
in
[
"MA"
,
"PC"
]:
if
last_two
in
[
"MA"
,
"PC"
]:
...
@@ -262,6 +262,7 @@ def handle_data(detail_datum, vendor, deduction_points):
...
@@ -262,6 +262,7 @@ def handle_data(detail_datum, vendor, deduction_points):
return
record
return
record
def
main
():
def
main
():
list_data
=
export_list_read_data
()
list_data
=
export_list_read_data
()
# list_data = list_data[25:]
# list_data = list_data[25:]
...
@@ -295,7 +296,7 @@ def main():
...
@@ -295,7 +296,7 @@ def main():
last_three
=
invoice_number
[
-
3
:]
# 取后三位
last_three
=
invoice_number
[
-
3
:]
# 取后三位
# 判断是否为争议订单
# 判断是否为争议订单
if
l
ast_three
==
"PCR"
or
last_two
==
"PC"
:
if
l
en
(
invoice_number
)
>
8
and
(
last_three
==
"PCR"
or
last_two
==
"PC"
)
:
cache_key
=
"price_data"
cache_key
=
"price_data"
price_data
=
rdb
.
get_client
()
.
hget
(
cache_key
,
invoice_number
)
price_data
=
rdb
.
get_client
()
.
hget
(
cache_key
,
invoice_number
)
if
price_data
:
if
price_data
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment