Commit 195be7a0 authored by 邱阿朋's avatar 邱阿朋

fix(app): 优化数据处理逻辑

- 在处理 COOP 数据时,增加对 "Funding Type" 字段的检查
- 只有当 "Funding Type" 字段存在时才进行移除操作
- 保留并更新 "Invoice date" 和 "Funding Type" 字段
parent 6e06aefe
......@@ -150,7 +150,8 @@ class Spa(AutoInterface):
processed_item.pop("Agreement title")
processed_item.pop("Original balance")
processed_item.pop("Invoice date")
processed_item.pop("Funding Type")
if "Funding Type" in processed_item.keys():
processed_item.pop("Funding Type")
processed_item["Invoice date"] = coop.get("Invoice date")
processed_item['Funding Type'] = coop.get("Funding Type")
......
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