11
This commit is contained in:
@@ -25,7 +25,7 @@ namespace MyCode.Project.Repositories
|
|||||||
|
|
||||||
SearchCondition where = new SearchCondition();
|
SearchCondition where = new SearchCondition();
|
||||||
|
|
||||||
where.AddSqlCondition(" 1=1 and a.FRemainOutQty<>0 AND a.FStockOutQty<>0 ", true);
|
where.AddSqlCondition(" 1=1 and a.FStockOutQty<>0 ", true);
|
||||||
|
|
||||||
string sql = $@" select * from (
|
string sql = $@" select * from (
|
||||||
SELECT * ,(QTY-FStockOutQty) AS FRemainOutQty,OutboundPercentage=CONVERT(DECIMAL(18,2),(CASE WHEN QTY !=0 THEN FStockOutQty/QTY*1.00 ELSE 0 END))
|
SELECT * ,(QTY-FStockOutQty) AS FRemainOutQty,OutboundPercentage=CONVERT(DECIMAL(18,2),(CASE WHEN QTY !=0 THEN FStockOutQty/QTY*1.00 ELSE 0 END))
|
||||||
|
|||||||
Reference in New Issue
Block a user