Skip to content

Accessory minimum quantity field now mandatory and zero always triggers warning #16950

@tsfuchs

Description

@tsfuchs

Describe the bug

Since one of the latest updates, the “Minimum Quantity” field for accessories is mandatory. Leaving it blank produces a validation error, and entering 0 still fires a “Below minimum quantity” warning as soon as stock hits zero.

To Reproduce

  1. Go to Accessories → Add New (or Edit an existing accessory)
  2. Leave Minimum Quantity blank and click Save
    • You get a validation error: “This field is required.”
  3. Enter 0 as minimum and set current stock to 0
    • A warning badge appears: “Below minimum quantity”

Expected behavior

  • “Minimum Quantity” should be optional (blank = no minimum).
  • If set to zero, stock = 0 should not produce a warning badge.
    In many use cases obsolete or intentionally un-reordered accessories need no restock alert.

Additional context

In older versions the field was optional. This regression complicates operations when obsolete or rarely used accessories don’t require restocking alerts, forcing users to maintain meaningless minimum values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions