feat(inout): 전체 입고 완료면 입고 저장 막기 · 사방넷 입고 파일 버튼 엑셀 초록
- 모든 품목 입고 완료·초과면 입고 칸·[입고 저장] 등 흐리게 disabled, 서버도 잠근 뒤 거절 - 사방넷 입고 파일 버튼 #217346 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -57,6 +57,10 @@ class InoutDbTests(unittest.TestCase):
|
||||
confirm_over=False, by="w@x")
|
||||
got = self.st.get_order(o["id"])
|
||||
self.assertEqual((got["status"], got["summary"]["remaining"], len(got["receipts"])), ("done", 0, 2))
|
||||
# 전체 입고 완료 뒤엔 더 받지 않는다(2026-10-19) — 초과 확인을 해도
|
||||
with self.assertRaisesRegex(ValueError, "전체 입고가 완료"):
|
||||
self.st.add_receipt(o["id"], {ids["MT-A"]: "1"}, receipt_date="2026-10-23", memo="", confirm_over=True, by="w@x")
|
||||
self.assertEqual(len(self.st.get_order(o["id"])["receipts"]), 2)
|
||||
self.assertEqual([r["total"] for r in got["receipts"]], [60, 90])
|
||||
# 진행 중 목록에서 빠지고 완료 목록에
|
||||
self.assertNotIn(o["id"], [x["id"] for x in self.st.list_orders(status="active", factory_id=self.fid)])
|
||||
|
||||
Reference in New Issue
Block a user