Preorder Validation Bug Report

Credit Limit Not Deducted After Successful Preorder with CREDIT Payment

Field Value
Defect ID BUG-PPO-134
Severity High
Priority High
Environment QA
Build x.x.x-rc
Module Preorder + Credit Limit
Status Open

Summary

Available credit limit is not deducted after a successful Preorder creation using “CREDIT” payment method.

Preconditions

  • Customer “CUST-DEMO-078” has available credit limit Rp 8.000.000.
  • Product catalog and pricing rules are active.

Steps to Reproduce

  1. Login as Sales user.
  2. Create a Preorder for customer “CUST-DEMO-078” with quantity 8 (total Rp 6.000.000).
  3. Set payment method to “CREDIT”.
  4. Submit the Preorder successfully.
  5. Check customer credit limit.

Expected Result

  • Preorder created with status “SUBMITTED”.
  • Available credit limit is automatically deducted by Rp 6.000.000 (new balance Rp 2.000.000).

Actual Result

  • Preorder is created successfully.
  • Credit limit remains unchanged (still Rp 8.000.000).

Business Impact

  • Credit exposure is not controlled properly.
  • Risk of over-limit Preorders being approved repeatedly.
  • Inaccurate financial reporting and customer credit tracking.

Evidence

  • Screenshot of successful Preorder creation.
  • Screenshot of customer credit limit before & after (no change).
  • API response payload for Preorder submission.
  • Database query result for credit limit table.
  • Correlation ID and timestamp.

Suggested Regression

  • Test Preorder creation with CREDIT payment at various limit levels.
  • Verify credit deduction on successful Preorder.
  • Test Preorder blocking when limit is exceeded.
  • Check partial discount and PPN calculation impact.
  • End-to-end flow from Preorder to credit limit report.

Back to Project