Adam Saghy created FINERACT-2268:
------------------------------------
Summary: Unable to delete gl account (existing but not yet used)
Key: FINERACT-2268
URL: https://issues.apache.org/jira/browse/FINERACT-2268
Project: Apache Fineract
Issue Type: Bug
Affects Versions: 1.11.0
Reporter: Adam Saghy
Seems like we are unable to delete an existing, but not yet used GL account at
the moment:
*Request*
{{DELETE .../fineract-provider/api/v1/glaccounts/<gl_account_id>}}
*Response*
{{HTTP 403:}}
{{{}}
{{ "developerMessage": "The request caused a data integrity issue to be
fired by the database.",}}
{{ "httpStatusCode": "403",}}
{{ "defaultUserMessage": "The attribute [glAccountId] is not present in the
managed type [EntityTypeImpl@643411416: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]].",}}
{{ "userMessageGlobalisationCode": "error.msg.data.integrity.issue",}}
{{ "errors": [}}
{{ {}}
{{ "defaultUserMessage": "The attribute [glAccountId] is not present
in the managed type [EntityTypeImpl@643411416: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]].",}}
{{ "developerMessage": "The attribute [glAccountId] is not present
in the managed type [EntityTypeImpl@643411416: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]].",}}
{{ "userMessageGlobalisationCode":
"error.msg.data.integrity.issue",}}
{{ "args": []}}
{{ }}}
{{ ]}}
{{}}}
*Expectation*
*- GL account got deleted*
--
This message was sent by Atlassian Jira
(v8.20.10#820010)