物料签收记录
This commit is contained in:
@@ -1497,6 +1497,21 @@ namespace Tnb.ProductionMgr
|
||||
// throw Oops.Bah("已完成数量不能大于任务单数量");
|
||||
// }
|
||||
|
||||
if (string.IsNullOrEmpty((input.material_box_code)))
|
||||
{
|
||||
throw Oops.Bah("载具不能为空");
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty((input.location_code)))
|
||||
{
|
||||
throw Oops.Bah("入库库位不能为空");
|
||||
}
|
||||
|
||||
if (input.reported_qty<=0)
|
||||
{
|
||||
throw Oops.Bah("提报数量为正数");
|
||||
}
|
||||
|
||||
report = input.Adapt<PrdReport>();
|
||||
report.id = SnowflakeIdHelper.NextId();
|
||||
report.reported_qty = input.reported_qty;
|
||||
|
||||
Reference in New Issue
Block a user