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

Negative stock levels are possible #1113

@christianlupus

Description

@christianlupus

Bug description

There is no logic that prevents a user from reducing the stock level beyond zero.

Steps to reproduce

  1. Go to part list and select a part with stock > 0.
  2. Click in the part details on Remove stock
  3. 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
    Screenshot_2020-04-11 PartKeepr

JavaScript errors

no errors found as it is a business logic problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions