This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Description
Bug description
There is no logic that prevents a user from reducing the stock level beyond zero.
Steps to reproduce
- Go to part list and select a part with stock > 0.
- Click in the part details on
Remove stock
- Remove more parts than currently present
Expected behavior
A warning appears and the stock is not removed.
Observed behavior
The stock is removed causing the total stock after the operation to drop below zero.
System Information
- PartKeepr Version: Demo System
- Reproducible on the demo system: Yes

JavaScript errors
no errors found as it is a business logic problem.