fix(costreview): 块库代次治理与带子级父行税率/合计修复(决策 290/291)

This commit is contained in:
lianjianwei2024
2026-11-09 23:33:14 +08:00
parent 1869d49bfd
commit 8b25a2a6f2
10 changed files with 1435 additions and 270 deletions

View File

@@ -375,6 +375,9 @@ def _dyn_rows(sc, sid, uw_id=None, keep_zero=False):
if cn is not None:
ntp = ntp if ntp is not None else cn
taxp = taxp if taxp is not None else ct
# 决策 291:带子级父行本身不带税率(显示端与导出件一致显示空/—)
if kids.get(code):
rate = None
return [p.get("id"), code, r.get("name") or "", r.get("spec") or "", r.get("unit") or "",
qty, ntp, rate, taxp, r.get("kind"), p.get("x_remark"), # 决策 203:备注随行(采纳/手工同字段)
*org4, ((r.get("x_flags") if r.get("x_flags") is not None else p.get("x_flags"))