feat: 支持个号转批号的配置2

This commit is contained in:
caoqianming 2025-04-28 15:25:41 +08:00
parent 0ff9aa1e5a
commit 7338d09f5d
1 changed files with 1 additions and 1 deletions

View File

@ -625,7 +625,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
if lenx == 1:
mlogbout.mlogb_from = mlogbin
mlogbout.number_from = mlogbwin.number
mlogbout.save(update_fields=["number_from"])
mlogbout.save()
elif material_in.tracking == Material.MA_TRACKING_SINGLE and material_out.tracking == Material.MA_TRACKING_SINGLE:
d_count_real = mlogbin.count_use * div_number
d_count_ok = d_count_real