Project

General

Profile

Actions

BUG #2445

open

[SQA] Validation and Usability Improvements Needed in Purchase Creation Form

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

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

0%

Estimated time:
Spent time:

Description

Issues in Purchase Creation Form

The Purchase creation form needs validation and usability improvements to ensure data accuracy and a smoother user experience.

Required Improvements

  1. Auto-generate Purchase Invoice Number

    • The Purchase Invoice Number field should be automatically generated to prevent duplication and reduce manual errors.
  2. Prevent Duplicate Product Entries with Same Batch ID

    • The same product should not be selectable more than once with the same batch ID in the same purchase entry.
  3. Quantity Validation

    • Quantity should:
      • Not accept negative numbers
      • Not accept floating point numbers (should allow integers only)
  4. Unit Cost Validation

    • Unit cost should not accept negative values.
  5. Shipping Cost Validation

    • Shipping cost should not accept negative values.
  6. Default Buyer Selection

    • The Buyer should be selected by default (e.g., current logged-in user or pre-defined default).
    • The buyer field should still be editable in the form.

Expected Result

  • All fields enforce proper validation.
  • Form prevents duplicate product entries with same batch.
  • Default buyer is selected and editable.
  • Numeric fields accept only valid, positive values.

Actual Result

  • Manual invoice number input is required.
  • Duplicate product-batch entries can be added.
  • Some numeric fields allow invalid or negative values.
  • Buyer field is empty by default.

Files

Screenshot 2025-06-25 142920.png (245 KB) Screenshot 2025-06-25 142920.png Md. Abdul Hamid, 06/25/2025 08:30 AM
Actions #1

Updated by Nazmul Hossain Shovon 10 months ago

  • Status changed from Pending to In Progress
Actions #2

Updated by Nazmul Hossain Shovon 10 months ago

  • Assignee set to Md. Abdul Hamid

currently we are keeping the buyer field empty by default

Actions #3

Updated by Md. Abdul Hamid 10 months ago

  • Assignee changed from Md. Abdul Hamid to Nazmul Hossain Shovon
  1. Unit Cost should increase or decrease by 1 and does not take negative number.
Actions #4

Updated by Nazmul Hossain Shovon 10 months ago

  • Assignee changed from Nazmul Hossain Shovon to Md. Abdul Hamid
Actions #5

Updated by Md. Abdul Hamid 10 months ago

Can not create purchase.

Actions

Also available in: Atom PDF