fix: 变更单件产品的属性问题3
This commit is contained in:
parent
d653caed1d
commit
6bcafcad3a
|
@ -288,9 +288,12 @@ class InmService:
|
||||||
ddict["batch_ofrom"] = i.batch
|
ddict["batch_ofrom"] = i.batch
|
||||||
ddict["material_ofrom"] = i.material
|
ddict["material_ofrom"] = i.material
|
||||||
|
|
||||||
count_change = i.count - i.count_notok
|
|
||||||
if field == "count":
|
if field == "count":
|
||||||
|
count_change = i.count - i.count_notok
|
||||||
|
elif field == "count_notok":
|
||||||
count_change = getattr(i, field)
|
count_change = getattr(i, field)
|
||||||
|
else:
|
||||||
|
raise ParseError("不支持该字段")
|
||||||
m_list = [(material, warehouse, i.batch, count_change, None, i)]
|
m_list = [(material, warehouse, i.batch, count_change, None, i)]
|
||||||
|
|
||||||
if tracking == Material.MA_TRACKING_SINGLE:
|
if tracking == Material.MA_TRACKING_SINGLE:
|
||||||
|
|
Loading…
Reference in New Issue