[ 
https://issues.apache.org/jira/browse/FINERACT-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18050941#comment-18050941
 ] 

Md Saiful Islam edited comment on FINERACT-2045 at 1/9/26 9:33 PM:
-------------------------------------------------------------------

Hey,

I would like to work on this issue.

I have analyzed the issue and it seems like the validation logic during the 
{{GLAccount}} deletion command needs to be adjusted to allow deletion when no 
financial activity or journal entries exist.

I have been working as Software Engineer and Four years of experience working 
with Java and Fineract in a production MFS environment, so I am comfortable 
navigating the codebase.

Could you please assign this ticket to me? I will raise a PR shortly.


was (Author: JIRAUSER311736):
Hey I want to work on this issue. 

> Deleting a GL account that is not tagged to any financial activity, mapped to 
> a product and does not have journal entries fails
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FINERACT-2045
>                 URL: https://issues.apache.org/jira/browse/FINERACT-2045
>             Project: Apache Fineract
>          Issue Type: Bug
>          Components: Accounting
>    Affects Versions: 1.9.0
>            Reporter: John Ruhiu
>            Assignee: Md Saiful Islam
>            Priority: Major
>              Labels: beginner-friendly
>
> It should be possible to delete a GL account that is
>  # Not linked to any financial activity
>  # Not mapped to any products
>  # Does not have any journal entries
> However, trying to delete such a GL account fails with the following error 
> message:
> The attribute [glAccountId] is not present in the managed type 
> [EntityTypeImpl@650953026:JournalEntry [ javaType: class 
> org.apache.fineract.accounting.journalentry.domain.JournalEntry descriptor: 
> RelationalDescriptor(org.apache.fineract.accounting.journalentry.domain.JournalEntry
>  --> [DatabaseTable(acc_gl_journal_entry)]), mappings: 25]].
>  
> Steps to replicate
>  # Create a GL account in the chart of accounts
>  # and try to delete the account immediately after



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to