fix: batches_to_limit 获取bug
This commit is contained in:
parent
f689b7609c
commit
8994b39917
|
@ -756,7 +756,7 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime,
|
||||||
elif mtype == Handover.H_DIV:
|
elif mtype == Handover.H_DIV:
|
||||||
if handover.wm is None:
|
if handover.wm is None:
|
||||||
raise ParseError('拆批请选择车间库存')
|
raise ParseError('拆批请选择车间库存')
|
||||||
batches_to_limit = BatchLog.batches_to(batch=handover.wm.batch)
|
batches_to_limit = BatchLog.batches_to(batch=handover.wm.batch)["batches"]
|
||||||
source_b, _ = BatchSt.g_create(batch=handover.wm.batch)
|
source_b, _ = BatchSt.g_create(batch=handover.wm.batch)
|
||||||
for item in handoverb_list:
|
for item in handoverb_list:
|
||||||
wmId, xcount, handover_or_b = item
|
wmId, xcount, handover_or_b = item
|
||||||
|
|
Loading…
Reference in New Issue