Project

General

Profile

Actions

Task #827

open

Epic #786: Square Payment Gateway Integration

Feature #826: Multi-item / Product Purchase

Price Calculation

Added by Redmine Admin about 2 months ago. Updated about 1 month ago.

Status:
Ready for Client
Priority:
Normal
Assignee:
Start date:
04/22/2026
Due date:
% Done:

0%

Estimated time:

Description

Calculate total price based on quantity and unit price. Include rounding rules and validations.

Actions #1

Updated by Abhishek Thakur about 1 month ago

  • Assignee set to Deeksha Singh
Actions #2

Updated by Deeksha Singh about 1 month ago

Module: Price Calculation

TC_ID_PRICE_01
Title: Verify total price is calculated correctly for valid inputs
Preconditions: Product/service available
Steps:

Enter quantity and unit price
Calculate total
Test Data: Quantity = 2, Unit Price = 100
Expected Result: Total = 200

TC_ID_PRICE_02
Title: Verify calculation with decimal unit price
Preconditions: Decimal pricing allowed
Steps:

Enter quantity and decimal price
Test Data: Quantity = 3, Unit Price = 99.99
Expected Result: Total = 299.97 (correct multiplication)

TC_ID_PRICE_03
Title: Verify rounding rules are applied correctly
Preconditions: Rounding logic implemented
Steps:

Calculate total price
Test Data: Quantity = 3, Unit Price = 33.333
Expected Result: Total rounded as per rule (e.g., 99.99 or 100.00 based on config)

TC_ID_PRICE_04
Title: Verify calculation for large quantity values
Preconditions: System supports bulk purchase
Steps:

Enter high quantity
Test Data: Quantity = 1000, Unit Price = 50
Expected Result: Total = 50000 without overflow or error

TC_ID_PRICE_05
Title: Verify validation for zero or negative quantity
Preconditions: Input validation enabled
Steps:

Enter invalid quantity
Test Data: Quantity = 0 or -1
Expected Result: Validation error, calculation not performed

TC_ID_PRICE_06
Title: Verify validation for zero or negative unit price
Preconditions: Input validation enabled
Steps:

Enter invalid price
Test Data: Unit Price = 0 or -100
Expected Result: Error shown, calculation blocked

TC_ID_PRICE_07
Title: Verify total price consistency between UI and backend
Preconditions: Calculation implemented on both sides
Steps:

Calculate price on UI
Compare with backend/API response
Test Data: Quantity = 5, Price = 120
Expected Result: Same total value in UI and backend

TC_ID_PRICE_08
Title: Verify recalculation when quantity is updated
Preconditions: Editable quantity field
Steps:

Change quantity
Test Data: Initial = 2 → Updated = 4
Expected Result: Total updates dynamically

TC_ID_PRICE_09
Title: Verify handling of null or missing inputs
Preconditions: Input fields available
Steps:

Leave fields empty
Test Data: Null quantity/price
Expected Result: Error shown, no calculation performed

TC_ID_PRICE_10
Title: Verify precision handling to avoid floating point errors
Preconditions: Decimal calculations used
Steps:

Perform calculation
Test Data: Quantity = 3, Unit Price = 0.1
Expected Result: Total = 0.3 (no precision error like 0.3000000004)

Actions #3

Updated by Deeksha Singh about 1 month ago

  • Status changed from New to Ready for Client
Actions

Also available in: Atom PDF