Aman-Mittal commented on issue #789:
URL:
https://github.com/apache/fineract-backoffice-ui/issues/789#issuecomment-6211225759
## Business process flow
```mermaid
flowchart TD
A["Chief accountant"] --> B{"Object"}
B -- "GL account" --> C{"DELETE_GLACCOUNT?"}
C -- Yes --> C1["DELETE /glaccounts/:id"]
C1 --> C2{"Has children, entries or product mappings?"}
C2 -- Yes --> C3["Show refusal reason"]
C2 -- No --> C4["Removed from chart"]
B -- "Closure" --> D{"UPDATE_GLCLOSURE?"}
D -- Yes --> D1["Edit comments only; closing date read-only"]
D1 --> D2["PUT /glclosures/:id"]
B -- "Charge definition" --> E{"DELETE_CHARGE?"}
E -- Yes --> E1["DELETE /charges/:id"]
E1 --> E2{"Attached to a product or account?"}
E2 -- Yes --> E3["Show refusal reason"]
E2 -- No --> E4["Removed"]
C & D & E -- No --> N["Control hidden"]
```
## UI mockup
```text
┌ GL account 40199 · Misc income (duplicate) ──────────── [✎ Edit] [🗑
Delete] ┐ ← DELETE_GLACCOUNT
└──────────────────────────────────────────────────────────────────────────┘
┌ Delete GL account ─────────────────────────────── ⚠ destructive ─────────┐
│ An account can be deleted only if it has no child accounts, no journal │
│ entries and is not mapped to any product. │
│ [Cancel] [Delete account] │
└──────────────────────────────────────────────────────────────────────────┘
→ refusal example: "Cannot delete: account is mapped to product 'WC
Invoice Finance'."
┌ Accounting closure · Main Office · 2026-09-30 ───────────────────────────┐
│ Closing date 2026-09-30 (read-only) │
│ Comments [ Q3 close, reviewed by audit 2026-10-05 ] │
│ [Cancel] [Save] │
← UPDATE_GLCLOSURE
└──────────────────────────────────────────────────────────────────────────┘
```
--
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]