Bug 36710

Summary: DB description of debit type is deleted when editing the type
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: System AdministrationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, lucas
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Caroline Cyr La Rose 2024-04-26 19:04:58 UTC
If someone edits a debit type, the DB description is deleted, replaced by NULL. I've only tried it with the RENT* debit types, as those were the ones reported to me. I suspect it would do the same for all system types, but haven't tested.

1. In the database, get the list of debit types

select * from account_debit_types;

--> They should all have a description

2. Go to Administration > Debit types
3. Click "Show all debit types"
4. Click "Edit" next to RENT
5. Check "Can be manually invoiced?"
6. Click "Save"
7. Click "Show all debit types"
--> Notice the description for RENT is still visible
8. Redo the query in the database
--> The description for RENT is now NULL
9. Optionally, go to Reports > Cash register (under Statistics wizards)
10. Open the dropdown of transaction types
--> There is an empty space where the RENT description should be
Comment 1 Caroline Cyr La Rose 2024-04-26 19:07:36 UTC
AFAIK, this goes back all the way to 23.05. That is where we first saw this bug. I don't know for version prior to that.