投料验证生产bom

This commit is contained in:
2024-07-08 08:34:18 +08:00
parent a281ce82c6
commit c2aaa1e353
2 changed files with 5 additions and 6 deletions

View File

@@ -412,10 +412,10 @@ namespace Tnb.ProductionMgr
{ {
foreach (var item in input.details) foreach (var item in input.details)
{ {
// if (!inputMaterials.Contains(item.material_id)) if (!inputMaterials.Contains(item.material_id))
// { {
// throw new Exception("该物料不是生产bom投入物料不能签收"); throw new Exception("该物料不是生产bom投入物料不能签收");
// } }
PrdMaterialReceiptD? detail = null; PrdMaterialReceiptD? detail = null;
if (carry.carrystd_id == WmsWareHouseConst.CARRY_ZYXCSTD_ID || carry.carrystd_id == WmsWareHouseConst.CARRY_ZYLJSTD_ID) if (carry.carrystd_id == WmsWareHouseConst.CARRY_ZYXCSTD_ID || carry.carrystd_id == WmsWareHouseConst.CARRY_ZYLJSTD_ID)

View File

@@ -498,8 +498,7 @@ public class DataBaseManager : IDataBaseManager, ITransient
if (_sqlSugarClient.CurrentConnectionConfig.DbType == SqlSugar.DbType.Oracle) if (_sqlSugarClient.CurrentConnectionConfig.DbType == SqlSugar.DbType.Oracle)
strSql = strSql.Replace(";", string.Empty); strSql = strSql.Replace(";", string.Empty);
Log.Information("查找报错sql:"+strSql);
var data = _sqlSugarClient.Ado.GetDataTable(strSql, parameters); var data = _sqlSugarClient.Ado.GetDataTable(strSql, parameters);
_sqlSugarClient.ChangeDatabase(_connectionStrings.ConfigId); _sqlSugarClient.ChangeDatabase(_connectionStrings.ConfigId);
return data; return data;