fix: mlogbin 不合格物料校验去除

This commit is contained in:
caoqianming 2024-08-01 16:54:09 +08:00
parent c293dd068f
commit cbedb81b0e
1 changed files with 0 additions and 2 deletions

View File

@ -382,8 +382,6 @@ class MlogbInSerializer(CustomModelSerializer):
mlog: Mlog = attrs['mlog'] mlog: Mlog = attrs['mlog']
mtask: Mtask = attrs['mtask'] mtask: Mtask = attrs['mtask']
wm_in: WMaterial = attrs['wm_in'] wm_in: WMaterial = attrs['wm_in']
if wm_in.notok_sign is not None:
raise ValidationError('不合格物料不可使用')
if mlog.route != mtask.route: if mlog.route != mtask.route:
raise ValidationError('工序不匹配') raise ValidationError('工序不匹配')
route = mlog.route route = mlog.route