fix: batches_to_limit 获取bug

This commit is contained in:
caoqianming 2025-05-30 09:56:07 +08:00
parent f689b7609c
commit 8994b39917
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ def handover_submit(handover:Handover, user: User, now: Union[datetime.datetime,
elif mtype == Handover.H_DIV:
if handover.wm is None:
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)
for item in handoverb_list:
wmId, xcount, handover_or_b = item