fix: 采购价格上限按数量计算总价 (#181)

This commit is contained in:
chengma
2026-08-12 14:43:18 +08:00
parent 8c7be7bd07
commit 253be7cb61
24 changed files with 203 additions and 106 deletions
+5 -1
View File
@@ -427,7 +427,11 @@ def _keyboard_is_shown(device: Any) -> Optional[bool]:
def _price_cent(root: ET.Element) -> int:
"""优先读取页面上半部的当前单价,不把划线价当成当前价。"""
"""读取页面上半部的当前采购金额,不把划线价当成当前价。
商品/规格页可能显示单价或小计;最终确认页应显示订单总价。业务层只在
最终确认页把该值与订单总价上限比较。
"""
parsed_nodes: list[tuple[int, int, str]] = []
screen_bottom = 0