feat(export): 恢复旧导出引擎并加固换行与舍入、新增采纳来源溯源与项目目录排序
This commit is contained in:
@@ -388,7 +388,7 @@ def test_adoption_carries_express_adjustment(server):
|
||||
d = z.read(nm)
|
||||
if nm.lower() != "project.xml":
|
||||
d = d.replace(b'Quantity="1.5"/>', b'Quantity="1.5" Express="1.5*1.2"/>')
|
||||
d = d.replace(b'<Norm ', b'<Norm NormIdentity="TEST 1 2018" ')
|
||||
d = d.replace(b' NormIdentity="N1"', b' NormIdentity="TEST 1 2018"') # 夹具已带 NormIdentity(2026-11-05 恢复旧引擎后造件补齐),改值不再插入
|
||||
zo.writestr(nm, d)
|
||||
raw = buf.getvalue()
|
||||
hp = os.path.join(str(server["root"]), "CostReview", "data", "source_files",
|
||||
@@ -516,6 +516,8 @@ def test_edited_totals_follow_qty_times_price(server):
|
||||
txt = "".join(zf.read(n).decode("utf-8", errors="replace") for n in zf.namelist()
|
||||
if n.lower() != "project.xml")
|
||||
assert 'Total="10000.00"' in txt, "清单合价应=20×500(2 位小数,决策 244 补六)"
|
||||
import re as _re2
|
||||
|
||||
assert 'Total="1200.00"' in txt, "定额合价应=15×80"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user