Project

General

Profile

Actions

BUG #2428

open

[SQA] Enforce Validation in "Create A New Product" Form – Generic Fields Required, Price Constraints

Added by Md. Abdul Hamid 11 months ago. Updated 10 months ago.

Status:
In Progress
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
05/13/2025
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

To ensure data consistency and prevent invalid entries, the Create A New Product form needs to enforce validation rules for mandatory fields and pricing logic.

Required Updates:

1. Mandatory Fields

  • Generic Name and Generic Category:
  • These fields must be mandatory.
  • The system should prevent product creation if either is left empty.
  • Show an inline error message if not filled.

2. Buying Price & Selling Price Validation

  • Must not allow negative values.
  • Input validation should restrict numbers below 0.

3. Price Step Constraint

  • Both Buying Price and Selling Price fields should:
  • Only accept whole numbers, not decimal values.
  • Prices should increase in increments of 5 or 10 units.
  • Example: Allowed values → 50, 55, 60 (if 5-unit step is used).
  • Show validation message for invalid input like 54, 11.25, -10.

Suggested Field Constraints:

Field Validation
Generic Name Required, non-empty
Generic Category Required, non-empty
Buying Price ≥ 0, Integer only, step of 5 or 10
Selling Price ≥ 0, Integer only, step of 5 or 10

Files

Screenshot_2025-05-13_at_10.45.26_AM.png (55.4 KB) Screenshot_2025-05-13_at_10.45.26_AM.png Md. Abdul Hamid, 05/13/2025 10:23 AM
Product create form.png (158 KB) Product create form.png Md. Abdul Hamid, 06/25/2025 08:21 AM
Actions

Also available in: Atom PDF