admin 管理员组文章数量: 887007
用友U8 合同执行情况视图SQL语句
create view [dbo].[PS_V_HTZXTJB]
as
SELECT a.HT_合同编号, a.合同类型, a.供应商名称, a.合同总金额, a.合同签订日期,
a.合同开始日期, a.合同结束日期, a.部门, a.采购员, a.HT_存货编码, a.HT_存货代码,
a.HT_规格型号, a.HT_存货名称, a.单位, a.质检, a.合同数量, a.税率, a.含税单价,
a.含税金额, a.令号, b.DH_合同编号, b.DH_存货编码, b.到货单号, b.到货属性,
b.到货日期, b.实收数量, c.BJ_合同编号, c.报检日期,
c.BJ_存货编码, c.报检数量, d.JY_合同编号, d.检验日期,
d.JY_存货编码, d.检验合格数量, e.RK_合同编号, e.入库日期,
e.RK_存货编码, e.入库数量
FROM PS_V_CGHT AS a LEFT JOIN
PS_V_CGDH AS b ON a.HT_合同编号 = b.DH_合同编号 AND
a.HT_存货编码 = b.DH_存货编码 LEFT JOIN
PS_V_CGBJ AS c ON b.DH_Autoid = c.DH_Autoid LEFT JOIN
PS_V_CGJY AS d ON b.DH_Autoid = d.DH_Autoid LEFT JOIN
PS_V_CGRK AS e ON b.DH_Autoid = e.DH_Autoid
WHERE 1 = 1
create View [dbo].[PS_V_CGHT]
as
select strContractID as HT_合同编号,cTypeName as 合同类型,strBisectionUnitName as 供应商名称,
dblTotalCurrency as 合同总金额,strContractOrderDat
本文标签: 用友U8 合同执行情况视图SQL语句
版权声明:本文标题:用友U8 合同执行情况视图SQL语句 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1732354241h1533971.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论