Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-2045

Deleting a GL account that is not tagged to any financial activity, mapped to a product and does not have journal entries fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.9.0
    • None
    • Accounting
    • None
    • Patch, Important

    Description

      It should be possible to delete a GL account that is

      1. Not linked to any financial activity
      2. Not mapped to any products
      3. 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

      1. Create a GL account in the chart of accounts
      2. and try to delete the account immediately after

      Attachments

        Activity

          People

            Unassigned Unassigned
            ruhiu John Ruhiu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: