2
This commit is contained in:
12
非C#代码文件/销售订单可核销金额视图.sql
Normal file
12
非C#代码文件/销售订单可核销金额视图.sql
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
-- <20><>ȫɾ<C8AB><C9BE><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD>Ƽ<EFBFBD><C6BC><EFBFBD>
|
||||||
|
IF OBJECT_ID('dbo.ZZV_SalOrder', 'V') IS NOT NULL
|
||||||
|
DROP VIEW dbo.ZZV_SalOrder;
|
||||||
|
GO
|
||||||
|
|
||||||
|
CREATE VIEW ZZV_SalOrder
|
||||||
|
AS
|
||||||
|
|
||||||
|
SELECT *
|
||||||
|
,(SELECT SUM(f.FAllAmount) FROM T_SAL_ORDERENTRY_F f WHERE f.fid=a.fid AND f.FAllAmount>0) ZhengShuHeJi
|
||||||
|
FROM dbo.T_SAL_ORDER a
|
||||||
|
WHERE a.FDOCUMENTSTATUS='C'
|
||||||
Reference in New Issue
Block a user