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

update

parent d402af12
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
.vscode .vscode
.venv .venv
*.pyc *.pyc
Return_Summary.xls *.xls
ContraCogsInvoices.xls
Payments.xlsx
return_goods return_goods
spa spa
refund refund
......
No preview for this file type
...@@ -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 last_three == "PCR" or last_two == "PC": if len(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:
......
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