从数据类型 varchar 转换为 numeric 时出错
SELECTT2.FBillNo,FDate,T3.FNumber物料代码,t1.FQty基本单位实发数量,t3.F_102包装系数,t1.FEntrySelfB0191...
SELECT T2.FBillNo,FDate ,T3.FNumber 物料代码,t1.FQty 基本单位实发数量,t3.F_102 包装系数,
t1.FEntrySelfB0191 出库单件数
, round(t1.FQty%t3.F_102,2) 余数
,round(t1.FQty/t3.F_102,0) 换算件数
,round(t1.FQty/t3.F_102,0)+'件'+round(t1.FQty%t3.F_102,2) + '盒'
FROM ICStockBillEntry T1
LEFT JOIN ICStockBill T2 ON T1.FInterID=T2.FInterID
LEFT JOIN t_ICItem T3 ON T3.FItemID=T1.FItemID
WHERE T2.FTranType=21
and t3.F_102<>0
AND T2.FBillNo = '180120002' 展开
t1.FEntrySelfB0191 出库单件数
, round(t1.FQty%t3.F_102,2) 余数
,round(t1.FQty/t3.F_102,0) 换算件数
,round(t1.FQty/t3.F_102,0)+'件'+round(t1.FQty%t3.F_102,2) + '盒'
FROM ICStockBillEntry T1
LEFT JOIN ICStockBill T2 ON T1.FInterID=T2.FInterID
LEFT JOIN t_ICItem T3 ON T3.FItemID=T1.FItemID
WHERE T2.FTranType=21
and t3.F_102<>0
AND T2.FBillNo = '180120002' 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询