Commit f947f988 authored by 邱阿朋's avatar 邱阿朋

update

parent d402af12
......@@ -2,13 +2,11 @@
.vscode
.venv
*.pyc
Return_Summary.xls
ContraCogsInvoices.xls
Payments.xlsx
*.xls
return_goods
spa
refund
*.xlsx
build
*.spec
payment
\ No newline at end of file
payment
No preview for this file type
......@@ -76,7 +76,7 @@ def export_list_read_data():
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 last_two in ["MA", "PC"]:
......@@ -262,6 +262,7 @@ def handle_data(detail_datum, vendor, deduction_points):
return record
def main():
list_data = export_list_read_data()
# list_data = list_data[25:]
......@@ -295,7 +296,7 @@ def main():
last_three = invoice_number[-3:] # 取后三位
# 判断是否为争议订单
if last_three == "PCR" or last_two == "PC":
if len(invoice_number) > 8 and (last_three == "PCR" or last_two == "PC"):
cache_key = "price_data"
price_data = rdb.get_client().hget(cache_key, invoice_number)
if price_data:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment