Compare commits
No commits in common. "b35015b58d33ebfdebe4bf350e4b6d7414156353" and "9909596cdb45ab8f5a27d843f89636e6fc821365" have entirely different histories.
b35015b58d
...
9909596cdb
|
|
@ -94,7 +94,7 @@ def do_out(item: MIOItem):
|
|||
raise ParseError(f"批次错误!{e}")
|
||||
mb.count = mb.count - xcount
|
||||
if mb.count < 0:
|
||||
raise ParseError(f"{mb.batch}-{str(mb.material)}-批次库存不足,操作失败")
|
||||
raise ParseError(f"{mb.batch}-批次库存不足,操作失败")
|
||||
else:
|
||||
mb.save()
|
||||
|
||||
|
|
@ -440,7 +440,7 @@ class InmService:
|
|||
elif in_or_out == -1:
|
||||
mb.count = mb.count - change_count
|
||||
if mb.count < 0:
|
||||
raise ParseError(f"{mb.batch}-{str(mb.material)}-批次库存不足,操作失败")
|
||||
raise ParseError(f"{mb.batch}-批次库存不足,操作失败")
|
||||
else:
|
||||
mb.save()
|
||||
if tracking == Material.MA_TRACKING_SINGLE:
|
||||
|
|
|
|||
Loading…
Reference in New Issue