Bug 40228

Summary: In inventory, "barcodes not found" are not in the array and therefore not exported
Product: Koha Reporter: Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Baptiste Wojtkowski (bwoj) 2025-06-24 14:36:23 UTC
When using the inventory tool while checking the box "on export as csv", barcode not found are exported in the csv.
However, when using the inventory tool and exporting as a csv the results, barcodes are not exported. This is normal because they are displayed as notification and not in the array.

It is a bit weird to have 2 different behaviours. A solution would be to append the errors in the array of results. Should we maybe have a syspref to decide if we append or not ? Can we consider that the not exported array should always have contained the barcode error ?