fix
This commit is contained in:
@@ -90,8 +90,8 @@ def extract_orders(ws, start_row: int, end_row: int, merged_ranges) -> List[Dict
|
||||
amount = get_merged_cell_value(ws, row, 9, merged_ranges) # I列
|
||||
account_name = get_merged_cell_value(ws, row, 15, merged_ranges) # O列
|
||||
|
||||
# 跳过空订单号的行
|
||||
if order_num is None or str(order_num).strip() == '':
|
||||
# 跳过金额为空的行(金额是必需的),但订单号可以为空
|
||||
if amount is None:
|
||||
continue
|
||||
|
||||
order = {
|
||||
|
||||
Reference in New Issue
Block a user