admin 管理员组文章数量: 887007
用友U8以项目号统计合同金额、订单金额、开票金额、付款金额
SELECT A.strCorrItemID AS 项目编码 ,
B.主项目号 ,
SUM(dblSum) AS 合同金额
FROM CM_Contract_Item_B A
LEFT JOIN fitemss00 B ON A.strCorrItemID = B.citemcode
GROUP BY A.strCorrItemID ,
B.主项目号;
SELECT cItemCode AS 项目编码 ,
SUM(iSum) AS 销售订单金额
FROM SO_SODetails
GROUP BY cItemCode;
SELECT cItemCode AS 项目编码 ,
SUM(iSum) AS 开票金额
FROM SaleBillVouchs
GROUP BY cItemCode;
SELECT A.cXm AS 项目编码 ,
SUM(iAmt) AS 收款金额
FROM Ap_CloseBills A
JOIN dbo.Ap_CloseBill B ON A.iID = B.iID
WHERE B.cVouchType = 48
GROUP BY A.cXm;
本文标签: 用友U8以项目号统计合同金额订单金额开票金额付款金额
版权声明:本文标题:用友U8以项目号统计合同金额、订单金额、开票金额、付款金额 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1732353539h1533782.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论