Scope
Test cases focused on invoice aging, overdue due-date boundaries, Sales Order blocking, payment recovery, and consistency between UI, API, and database state.
Test Case: Sales Order Blocking due to Outstanding Overdue Invoice
| Field | Value |
| Test Case ID | TC-OVERDUE-052 |
| Module | Sales Order + Invoice + Credit Limit |
| Priority | High |
| Test Type | Functional + Boundary + Negative |
| Requirement | Sales Order must be blocked if the customer has any outstanding invoice that is overdue, where due date <= today. |
| Preconditions | Customer has one or more unpaid overdue invoices with due date <= today. |
| Test Data | Customer “CUST-DEMO-078”, overdue invoice due date = today or earlier, amount Rp 3.500.000. |
Steps
| Step | Action | Expected Result |
| 1 | Login as Sales user | Dashboard loads successfully |
| 2 | Search and select customer “CUST-DEMO-078” | Customer detail loads with credit status |
| 3 | Check customer outstanding invoices | System shows unpaid invoice(s) with due date <= today |
| 4 | Attempt to create a new Sales Order | System blocks the Sales Order creation |
| 5 | Check blocking reason | Blocking reason clearly states “Outstanding overdue invoice” or “Ada invoice overdue” |
| 6 | Verify order status | Order status shows “BLOCKED” or “REJECTED” |
| 7 | Make a qualifying/full payment for the overdue invoice(s) | Payment is recorded successfully and invoice status changes to paid |
| 8 | Attempt to create Sales Order again | Sales Order can now be created successfully |
| 9 | Verify in database / report | Order eligibility and invoice status are consistent after payment |
Pass Criteria
- Sales Order is blocked as long as there is any outstanding invoice with due date <= today.
- Blocking message is clear and informative for the user.
- After settling the overdue invoice(s), the customer becomes eligible for new Sales Orders.
- UI, API, and database states remain consistent throughout the flow.
Evidence Captured
- Screenshot of blocked Sales Order with reason.
- Screenshot of customer invoice list showing due date <= today.
- Screenshot after payment, showing successful order creation.
- API response for order creation attempt.
- Database query showing invoice due date and order eligibility flag.
Back to Project