|
|
@ -1083,20 +1083,24 @@ namespace NFine.Application.WMS |
|
|
|
AND b.LotNo NOT LIKE '%-%' |
|
|
|
GROUP BY a.SDNCode,a.Sequence,a.SDNQuantity";
|
|
|
|
} |
|
|
|
if (!sql.IsEmpty()) |
|
|
|
{ |
|
|
|
var datas = Repository().FindDataSetBySql(sql).Tables[0]; |
|
|
|
if(datas.Rows.Count<1) |
|
|
|
if (datas.Rows.Count < 1) |
|
|
|
return msg.ToString(); |
|
|
|
foreach (DataRow data in datas.Rows) |
|
|
|
{ |
|
|
|
string code= data["Code"].ToString(); |
|
|
|
string code = data["Code"].ToString(); |
|
|
|
string sequence = data["Sequence"].ToString(); |
|
|
|
decimal quantity = data["Quantity"].ToDecimal(); |
|
|
|
decimal issueQuantity= data["IssueQuantity"].ToDecimal(); |
|
|
|
if (quantity!= issueQuantity) |
|
|
|
decimal issueQuantity = data["IssueQuantity"].ToDecimal(); |
|
|
|
if (quantity != issueQuantity) |
|
|
|
{ |
|
|
|
msg.Append($@"单据号:{code},行号:{sequence},已经生成条码,请先删除条码后再取消单据; "); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return msg.ToString(); |
|
|
|
} |
|
|
|
|
|
|
|