Invoice Blocking Bug Report
Pre Order Not Blocked Despite Remaining Invoice Exceeding Buffer
| Field | Value |
|---|---|
| Defect ID | BUG-OVERDUE-078 |
| Severity | High |
| Priority | High |
| Environment | QA |
| Build | x.x.x-rc |
| Module | Pre Order + Payment Collection |
| Status | Open |
Summary
Pre Order with “KREDIT” payment method is created with status “C” even though remaining invoice amount exceeds the configured buffer. The expected status is “HOLD”.
Preconditions
- CPO import with outstanding payment collection exists.
- Remaining invoice buffer is configured as 50.000.
- Customer has remaining invoice = 55.000.
Steps to Reproduce
- Start a Visit.
- Create a Payment Collection with remaining invoice = 55.000.
- Create a Pre Order using payment method [“KREDIT”].
Expected Result
- Pre Order is created with status “HOLD”.
- Confirmation popup appears with message “Terdapat Outstanding Invoice, harap melakukan penagihan terlebih dahulu”.
Actual Result
Pre Order is created successfully with status “C” and no popup warning is shown.
Business Impact
- New Pre Orders can be created even when financial exposure is too high.
- Violates the outstanding payment collection control rule.
- Increases risk of unsupported credit exposure.
Evidence
- Screenshot of Pre Order creation flow.
- Screenshot of created Pre Order status “C”.
- API response when creating Pre Order.
- Database record showing remaining invoice amount vs buffer.
- Correlation ID and application logs.
Suggested Regression
- Test Pre Order creation with remaining invoice < buffer, = buffer, and > buffer.
- Test with multiple outstanding invoices.
- Test after partial and full payment collection.
- Test boundary values around the buffer configuration.
- End-to-end flow from Payment Collection -> Pre Order eligibility.