Skip to content

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

  1. Restock 20 + withdraw 5 — Expected: Withdrawal row present
  2. Edit withdrawal to qty 8 — Expected: Row updated with new qty and price
  3. Separate restock 15 + withdrawal 3 for item 2 — Expected: Second item movements recorded
  • Spec: tests/e2e/tests/storage.spec.ts