Edge Cases and Limitations
Special handling rules and out-of-scope behavior.
Edge Cases
Cross-branch payment that fully settles a transaction
- Scenario: Payment is collected at a non-owning branch and the amount fully settles the transaction.
- Expected behavior: Accepted. The transaction closes, a closure invoice and a cross-branch settlement record are created, and the owning branch's managers and the Head are notified.
- Note: Manual “mark CLOSED”, top-ups and gold releases are still owning-branch only.
Duplicate payment submission
- Scenario: The same payment is submitted twice (double click, network retry) or the same reference number is reused on one transaction.
- Expected behavior: Exact retries are recognised and return the original result instead of posting again; near-identical payments within a few minutes are blocked; a reused reference number on the same transaction is rejected.
- Action: If it is genuinely a second payment, use a different reference (or leave it blank) and confirm the amount.
Invalid payment dates
- Scenario: Payment date is in the future, before the transaction start date, or on/before an existing receipt or release.
- Expected behavior: Post rejected. (Dates inside an already-billed 15-day slab are allowed, so principal can be paid early.)
- Action: Correct the date.
Payments or releases while status is AUCTION
- Scenario: User tries to post a payment or release gold after the transaction is marked AUCTION.
- Expected behavior: Rejected. From AUCTION the only allowed change is to CLOSED.
Customer overpayment
- Scenario: Cash received exceeds interest + principal due.
- Expected behavior: Surplus is recorded as customer advance. Advances are used for gold releases and same-day top-ups; they are not applied to normal payments or closures.
- Action: Explain to the customer how the advance appears on their profile and receipts.
Blocked customer with existing active transactions
- Scenario: Customer is blocked after one or more transactions were already active.
- Expected behavior: New transactions and gold releases are blocked; payments (including full settlement) on existing transactions are allowed.
Early closure
- There is no special first-month rule: every unpaid period is billed in 15-day slabs (1–15 days = 15, 16–30 = 30, …), for partial payments and closures alike.
- A transaction settled on its start date is charged one 15-day slab.
Missing daily gold price
- Scenario: No gold price has been entered for the business date and currency.
- Impact: Creating a transaction or top-up is blocked. Releases use a manual price if given, otherwise the release date's price, then today's, then the latest available.
- Action: Enter (or sync) the daily gold price first.
Duplicate civil ID attempt
- Scenario: User tries to create a new customer with an existing civil ID.
- Expected behavior: System prevents duplicate creation.
- Action: Search and use the existing customer profile.
Post-creation civil ID change
- Scenario: Civil ID requires correction after customer creation.
- Expected behavior: Only the Head role can update civil ID.
- Action: Escalate the request to the Head.
Limitations and Scope Boundaries
- Full auction liquidation workflows are out of scope. Marking AUCTION (parent transaction only—it applies to the whole top-up family) resets carried unpaid interest, stops interest, and blocks payments and releases; afterwards only AUCTION → CLOSED is allowed.
- Automated legal notices are out of scope.
- SMS and WhatsApp integration are not included in current scope.
- Mobile app is out of scope for this phase.
- Gold barcode tagging is not included.
Resolved Policy Decisions
-
Customer creation authority:
- Head, Branch Manager and Staff are all allowed
-
Block customer authority:
- Head and Branch Manager
-
Payment entry authority:
- Head, Branch Manager, and Staff are all allowed, for any branch's transaction
-
AUCTION status authority:
- Head, Branch Manager, and Staff are all allowed
-
Civil ID evidence:
- Front image is mandatory at customer creation; back image is optional
-
Payment reference number:
- Optional; when entered it must be unique per transaction. Duplicate posting is prevented automatically.
-
Interest calculation on posting:
- Authoritative accrued interest comes from the server at post time (previews are estimates)
-
Gold release rule:
- Owning branch only. From an ACTIVE transaction, the customer's advance balance must cover the lower of (released gold value, outstanding principal + interest); that amount is applied to interest first, then principal. From a fully settled CLOSED transaction, release is a custody handover.
-
Gold valuation formula (single standard):
- value = net weight × (purity / 100) × daily gold rate
- This same formula is used in release, risk, and valuation safeguards
-
Discount rules:
- Reason required; interest only; cannot exceed accrued interest; Branch Managers and Head receive discount alerts
-
Top-up:
- Creates a linked child transaction on an ACTIVE parent (the parent stays active). Combined principal of the family cannot exceed the gold value on the top-up date. Owning branch only.
Operational Warnings
- Individual payments cannot be deleted.
- Key financial and status changes are audit-logged; audit logs are kept for the configured retention period (default 30 days).
- Amounts are stored and displayed to 3 decimals.
- Interest model is simple interest on a 360-day year with 15-day slabs; no compounding.
Workflow Prerequisite Checklist
Use this quick check before sensitive operations:
- Customer is valid (and not blocked, for new transactions or releases).
- Transaction status is ACTIVE.
- Daily gold rate is present.
- Branch ownership rules are respected (manual closure, top-up, release).
- Required reason fields are completed (for discount, interest waiver or blocking actions).