Commit baadc1bc authored by 张永's avatar 张永

需求 #16766

parent a7d3b9ea
...@@ -508,7 +508,7 @@ public class GoodsServiceImpl implements GoodsService { ...@@ -508,7 +508,7 @@ public class GoodsServiceImpl implements GoodsService {
" and t.nAgentID = ?" + " and t.nAgentID = ?" +
" union " + " union " +
" select t.nGoodsID, gu.sUnitTypeID, gu.sUnitType, gu.nConvertRate, " + " select t.nGoodsID, gu.sUnitTypeID, gu.sUnitType, gu.nConvertRate, " +
" gu.sUnit,sMinUnit = t.sUnit, nRealSalePrice = gu.nSalePrice, gu.nSalePrice, " " gu.sUnit,sMinUnit = t.sUnit, nRealSalePrice = gu.nSalePrice, nSalePrice = round(t.nSalePrice*gu.nConvertRate,2), "
+ " t.sSpec + '*' + dbo.fn_GetConvertDec(gu.nConvertRate), nMinSaleQty = 1, nSaleUnits = 1, nStockQty = cast(t.nStockQty/gu.nConvertRate as int), t.sStockTag, " + + " t.sSpec + '*' + dbo.fn_GetConvertDec(gu.nConvertRate), nMinSaleQty = 1, nSaleUnits = 1, nStockQty = cast(t.nStockQty/gu.nConvertRate as int), t.sStockTag, " +
" sShowUnit = convert(varchar,gu.nSalePrice) + '元/' + gu.sUnit + ' (' + dbo.fn_GetConvertDec(gu.nConvertRate) + t.sUnit + ')' " + " sShowUnit = convert(varchar,gu.nSalePrice) + '元/' + gu.sUnit + ' (' + dbo.fn_GetConvertDec(gu.nConvertRate) + t.sUnit + ')' " +
" from V_OrgGoods t join tAgentGoodsUnit gu on gu.nAgentID = t.nAgentID " + " from V_OrgGoods t join tAgentGoodsUnit gu on gu.nAgentID = t.nAgentID " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment