https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29099
--- Comment #32 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 200208 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200208&action=edit Bug 29099: Add bundle support to inventory tool Extends the inventory tool to allow filtering by item bundle. When item bundles are defined in the system, a searchable "Items bundle" dropdown is shown in the filter form. Selecting a bundle restricts the inventory run to only the items contained in that bundle. The filter is passed to GetItemsForInventory (C4/Items.pm), which uses a subquery against the item_bundles table to limit the result set. The dropdown is enhanced with select2 and is only rendered when at least one bundle exists. The existing "no filters selected" JavaScript warning is updated to treat a bundle selection as a valid filter. Test plan: 1. Set up at least one item bundle: find or create a host item, then attach other items to it via the item bundle management interface. 2. Go to Tools > Inventory. 3. Confirm a new "Items bundle" searchable dropdown is visible. The dropdown should NOT appear if no bundles exist in the system. 4. Select a bundle from the dropdown and run the inventory (with a barcode file or a manually scanned list of barcodes). 5. Confirm the "Expected items" list contains only items that belong to the selected bundle — no items from other bundles or unbundled items should appear. 6. Run the inventory again with no bundle selected; confirm normal unfiltered results are returned (no regression). 7. Load a barcode file, clear all other filters, and select a bundle. Confirm the "no catalog filters" warning is suppressed — the bundle alone should be treated as a sufficient filter. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
