feat: generate_new_batch 追加锅号

This commit is contained in:
caoqianming 2024-11-28 09:37:17 +08:00
parent 08d6763db6
commit 31b1aae03c
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ def generate_new_batch(old_batch: str, mlog: Mlog):
number = mlog.equipment.number if mlog.equipment else ''
if number:
new_batch = f'{new_batch}>{number}'
if mlog.index:
new_batch = f'{new_batch}>{mlog.index}'
return new_batch
def find_material_can_change(material: Material, mgroup_to: Mgroup):