Aman-Mittal commented on issue #771:
URL: 
https://github.com/apache/fineract-backoffice-ui/issues/771#issuecomment-6211138475

   ## Business process flow
   
   ```mermaid
   flowchart TD
       A["Active Working Capital loan"] --> B{"Which event?"}
       B -- "Borrower settles early" --> P["Prepay"]
       B -- "Concession agreed" --> G["Goodwill credit"]
       B -- "Merchant payout returned" --> R["Payout refund"]
       B -- "Loan overpaid" --> C["Credit balance refund"]
   
       P --> P1{"REPAYMENT_WORKINGCAPITALLOAN?"}
       G --> G1{"GOODWILLCREDIT_WORKINGCAPITALLOAN?"}
       R --> R1{"PAYOUTREFUND_WORKINGCAPITALLOAN?"}
       C --> C0{"Loan has credit balance?"}
       C0 -- No --> CX["Action not offered"]
       C0 -- Yes --> C1{"CREDITBALANCEREFUND_WORKINGCAPITALLOAN?"}
   
       P1 & G1 & R1 & C1 -- No --> N["Action hidden/disabled with 'Requires …' 
tooltip"]
       P1 & G1 & R1 & C1 -- Yes --> T["GET transactions/template?command=… for 
defaults"]
       T --> F["Operator confirms date, amount, payment type, note"]
       F --> S["POST /working-capital-loans/:id/transactions?command=…"]
       S --> M{"Maker-checker on?"}
       M -- Yes --> Q["Queued for <CODE>_CHECKER approval"]
       M -- No --> U["Transactions tab + balances refresh"]
   ```
   
   ## UI mockup
   
   ```text
   ┌ Working Capital Loan #000123 · Active ───────────────────────────────────┐
   │ Outstanding 32,410.00   Overpaid 0.00                                    │
   │ [Repayment] [⋮ More actions]                                             │
   │              ├ Prepay                      ← REPAYMENT_WORKINGCAPITALLOAN │
   │              ├ Goodwill credit             ← GOODWILLCREDIT_…             │
   │              ├ Payout refund               ← PAYOUTREFUND_…               │
   │              └ Credit balance refund (only when overpaid) ← 
CREDITBALANCEREFUND_… │
   └──────────────────────────────────────────────────────────────────────────┘
   
   ┌ Prepay loan ─────────────────────────────────────────────────────────────┐
   │ Transaction date *   [ 2026-10-16 📅 ]                                   │
   │ Amount to settle     32,410.00   (from prepay template, read-only)       │
   │ Payment type *       [ Bank transfer ▾ ]                                 │
   │ Reference / note     [                         ]                         │
   │                                       [Cancel]  [Post prepayment]        │
   └──────────────────────────────────────────────────────────────────────────┘
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to