Actions
BUG #2445
open[SQA] Validation and Usability Improvements Needed in Purchase Creation Form
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¶
-
Auto-generate Purchase Invoice Number
- The Purchase Invoice Number field should be automatically generated to prevent duplication and reduce manual errors.
-
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.
-
Quantity Validation
- Quantity should:
- Not accept negative numbers
- Not accept floating point numbers (should allow integers only)
- Quantity should:
-
Unit Cost Validation
- Unit cost should not accept negative values.
-
Shipping Cost Validation
- Shipping cost should not accept negative values.
-
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
Updated by Nazmul Hossain Shovon 10 months ago
- Status changed from Pending to In Progress
Updated by Nazmul Hossain Shovon 10 months ago
- Assignee set to Md. Abdul Hamid
currently we are keeping the buyer field empty by default
Updated by Md. Abdul Hamid 10 months ago
- Assignee changed from Md. Abdul Hamid to Nazmul Hossain Shovon
- Unit Cost should increase or decrease by 1 and does not take negative number.
Updated by Nazmul Hossain Shovon 10 months ago
- Assignee changed from Nazmul Hossain Shovon to Md. Abdul Hamid
Updated by Md. Abdul Hamid 10 months ago
- File Screenshot 2025-06-25 142920.png Screenshot 2025-06-25 142920.png added
- Assignee changed from Md. Abdul Hamid to Najmul Hasan
Can not create purchase.
Actions