一、背景要求:现存量表取存货管理档案-存货管理信息页签的参考售价,参考售价乘以结存数量得出现有存货的结存金额。二、实现方式:1、查询出现存量帐表模版:400830022、存货id根据下图步骤改为模版显示,这个字段必须在现存量表中显示,否则后续公式不生效。3、增加原始公式列:cksj->getcolvalue(bd_invmandoc,refsaleprice,pk_invmandoc,cinventoryid)cbje->tonumber(getcolvalue(bd_invmandoc,refsaleprice,pk_invmandoc,cinventoryid))*tonumber(num)三:效果展示: