Bug 40691

Summary: CCODE label not includes in case of 'wrong place' problem (and maybe others cases) into inventory.pl
Product: Koha Reporter: Thibaud Guillot (thibaud_g) <thibaud.guillot>
Component: ToolsAssignee: Thibaud Guillot (thibaud_g) <thibaud.guillot>
Status: Pushed to oldstable --- QA Contact: Marcel de Rooy <m.de.rooy>
Severity: trivial    
Priority: P5 - low CC: fridolin.somers, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
25.11.00,25.05.04,24.11.10
Circulation function:
Attachments: Bug 40691: Add ccode label on inventory table
Bug 40691: Add ccode label on inventory table
Bug 40691: Add ccode label on inventory table

Description Thibaud Guillot (thibaud_g) 2025-08-22 09:09:07 UTC
Hello,

Just a quick fix: when you create an inventory of items and some items have “wrong place” problems, if they are associated with a collection code, the table will only display the code and not its label.
Comment 1 Thibaud Guillot (thibaud_g) 2025-08-22 09:30:08 UTC
Created attachment 185707 [details] [review]
Bug 40691: Add ccode label on inventory table

Test plan:

1) Perform an item inventory, be sure to have some items with problems
   :) like 'wrong place'
2) On table if item has 'wrong place' problem (maybe others cases ?) if
   it's linked to collection code just the AV code appears not the label
3) Apply this patch
4) Refresh page, normally that's okay now

Sponsored-by: BibLibre
Comment 2 Owen Leonard 2025-08-23 16:14:37 UTC
Created attachment 185726 [details] [review]
Bug 40691: Add ccode label on inventory table

Test plan:

1) Perform an item inventory, be sure to have some items with problems
   :) like 'wrong place'
2) On table if item has 'wrong place' problem (maybe others cases ?) if
   it's linked to collection code just the AV code appears not the label
3) Apply this patch
4) Refresh page, normally that's okay now

Sponsored-by: BibLibre
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Marcel de Rooy 2025-08-29 07:07:22 UTC
Filled Assignee ;)
Comment 4 Marcel de Rooy 2025-08-29 07:08:41 UTC
Created attachment 185874 [details] [review]
Bug 40691: Add ccode label on inventory table

Test plan:

1) Perform an item inventory, be sure to have some items with problems
   :) like 'wrong place'
2) On table if item has 'wrong place' problem (maybe others cases ?) if
   it's linked to collection code just the AV code appears not the label
3) Apply this patch
4) Refresh page, normally that's okay now

Sponsored-by: BibLibre
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 5 Lucas Gass (lukeg) 2025-08-29 17:10:45 UTC
Nice work everyone!

Pushed to main for 25.11
Comment 6 Paul Derscheid 2025-09-20 08:59:30 UTC
Nice work everyone!

Pushed to 25.05.x
Comment 7 Fridolin Somers 2025-10-10 13:49:15 UTC
Pushed to 24.11.x for 24.11.10