114 — Edit withdrawal and add item in movements¶
Description¶
Editing withdrawal qty 5→8 updates the movement row; withdrawals for multiple items can coexist on the movements page.
Preconditions¶
- Clean database
- User logged in with ADMIN and WAREHOUSEMAN roles
- Three storage categories pre-created (Nářadí, Materiál, Ochranné pomůcky)
- Storage items and contract pre-created via API (per scenario)
Steps¶
- Restock 20 + withdraw 5 — Expected: Withdrawal row present
- Edit withdrawal to qty 8 — Expected: Row updated with new qty and price
- Separate restock 15 + withdrawal 3 for item 2 — Expected: Second item movements recorded
Related¶
- Spec:
tests/e2e/tests/storage.spec.ts