出入库调整

This commit is contained in:
2026-01-24 13:47:02 +08:00
parent 3d5ad78fad
commit 1e7d768489
2 changed files with 88 additions and 67 deletions

View File

@@ -305,11 +305,8 @@ public class ReportFlowService : BaseService<ProReportwork01>, IReportFlowServic
}
else
{
if (inboundRecord.Quantity != finish_num)
{
Context.Ado.RollbackTran();
throw new Exception("修改数量前请先撤销已有生产入库记录!");
}
Context.Ado.RollbackTran();
throw new Exception("重新成品入库前请先撤销已有物料生产入库记录!");
}
}
Context.Ado.CommitTran();
@@ -451,11 +448,8 @@ public class ReportFlowService : BaseService<ProReportwork01>, IReportFlowServic
}
else
{
if (outboundDto.Quantity != finish_num)
{
Context.Ado.RollbackTran();
throw new Exception("修改数量前请先撤销出货出库记录");
}
Context.Ado.RollbackTran();
throw new Exception("重新出货前请先撤销物料出货出库记录");
}
// 修改工单信息