Preorder Validation Test Case

Scope

This test case validates Preorder creation with “CREDIT” payment, pricing calculation, and automatic credit limit deduction.

Test Case: Preorder Creation with Credit Payment Impact on Credit Limit

Field Value
Test Case ID TC-PPO-092
Module Preorder + Credit Limit + Pricing
Priority High
Test Type Functional + Credit Impact
Requirement When a Preorder is successfully created using “CREDIT” payment method, the available credit limit must be automatically deducted. Pricing calculation must be correct.
Preconditions Customer “CUST-DEMO-078” has available credit limit Rp 8.000.000.
Test Data Customer: CUST-DEMO-078, Product: PROD-001 (Rp 750.000), Quantity: 8

Steps

Step Action Expected Result
1 Login as Sales user Dashboard loads successfully
2 Navigate to Preorder menu and select customer “CUST-DEMO-078” Customer detail loads with current available credit limit (Rp 8.000.000)
3 Add product “PROD-001” with quantity 8 Subtotal, discount, PPN, and final total calculated correctly (Rp 6.000.000)
4 Set payment method to “CREDIT” Credit payment option is selected
5 Submit Preorder Preorder is created successfully with status “SUBMITTED”
6 Check customer credit limit after order creation Available credit limit is deducted by Rp 6.000.000 (new balance Rp 2.000.000)
7 Verify Preorder details Order shows correct total amount and “CREDIT” payment method
8 Check database records Credit limit usage is updated accurately

Pass Criteria

  • Preorder is successfully created with “CREDIT” payment method.
  • Pricing (subtotal + PPN + discount) is calculated correctly.
  • Available credit limit is automatically deducted upon successful Preorder creation.
  • UI, API, and database states are consistent.

Evidence Captured

  • Screenshot of Preorder form with final total and payment method.
  • Screenshot of updated customer credit limit after order creation.
  • API response for Preorder submission.
  • Database query for credit limit balance before & after.

Back to Project