DECLARE @从DATE,@到DATE
SET @From =''
SET @To =''
选择
A.DocNum AS [发票编号],A.CardName AS [客户名称],
当A.DocType ='S'然后B.LineTotal ELSE 0 END AS [服务总计]时,
当A.DocType ='I'时的情况B.LineTotal ELSE 0 END AS [项目总计]
从OINV A
A.DocEntry上的INNER1 INV1 B = B.DocEntry
@From和@To之间的A.DocDate
全联盟
-取消项目
选择
A.DocNum AS [发票编号],A.CardName AS [客户名称],
当A.DocType ='S'然后-B.LineTotal ELSE 0 END AS [服务总计]时的情况,
当A.DocType ='I'时的情况-B.LineTotal其他0结束为[项目总计]
从ORIN A
内连接RIN1 B在A.DocEntry = B.DocEntry
@From和@To之间的A.DocDate
嗨,
尝试一下
一周热门 更多>