物料签收记录

This commit is contained in:
2023-11-24 15:51:16 +08:00
parent 8af12b3013
commit f95b1fb326
4 changed files with 239 additions and 0 deletions

View File

@@ -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;