fix(costreview): 块库代次治理与带子级父行税率/合计修复(决策 290/291)
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user