出入库调整
This commit is contained in:
@@ -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("重新出货前请先撤销物料出货出库记录");
|
||||
}
|
||||
|
||||
// 修改工单信息
|
||||
|
||||
Reference in New Issue
Block a user