John Ruhiu created FINERACT-2045:
------------------------------------

             Summary: 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


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