Project

General

Profile

Actions

BUG #2429

open

[SQA] Improve "Create New Payment" Form – Validation and Auto-Generation Enhancements

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

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

0%

Estimated time:

Description

To ensure accurate financial records and user-friendly input, the Create New Payment form needs the following improvements in field validation, input restrictions, and auto-generation behavior.

Required Changes:

1. Auto-Generate Invoice Number

  • The Invoice No should be automatically generated by the system.
  • Must follow a unique and consistent format, e.g., PAY-YYYYMMDD-XXXX.
  • Should be read-only for the user.

2. Amount Field Validation

  • Amount should:
  • Not accept negative values
  • Reject zero or values less than 1
  • Allow only whole numbers or values with maximum 2 decimal places
  • Example: Accept 100, 250.50, Reject -10, 0.1, 0, abc

3. Required Field Enforcement

  • Make sure all * marked fields are:
  • Strictly required before submission.
  • Proper error messages should be shown if missing:
  • Date
  • Sale Invoice
  • Account
  • Amount

4. Document Link (Optional)

  • Document link should:
  • Be validated as a proper URL format
  • Accept only http or https links (no invalid text)

5. Date Field

  • Date field should have:
  • Date-time picker
  • Placeholder like: Select Date and Time
  • Prevent future dates (if not allowed by logic)

Summary of Field Validations:

Field Requirement
Invoice No Auto-generated, read-only
Date Required, valid datetime
Sale Invoice Required
Accoun Required, must be selected from dropdown
Amount Required, > 0, no negative, no invalid characters
Payment Method Optional or required depending on system config
Document Link Optional, must be a valid URL if filled

Files

Actions #1

Updated by Najmul Hasan 11 months ago

  • Status changed from Pending to In Progress
  • Assignee set to Najmul Hasan
Actions

Also available in: Atom PDF