https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43345 Bug ID: 43345 Summary: The Pending orders table lists order lines with a cancellation date Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: nugged@gmail.com QA Contact: testopia@bugs.koha-community.org Depends on: 36018 Target Milestone: --- The Pending orders table can list historical order lines whose cancellation date is set while their status is still new, ordered or partial and an outstanding quantity remains. Bug 36018 made the Pending orders table use Koha::Acquisition::Orders->filter_by_active. The filter checks order status and outstanding quantity, but it does not check datecancellationprinted. Bug 36068 classifies this exact combination (a cancellation date with a non-cancelled status) as obsolete acquisition data. As a result, an obsolete cancelled order line can be offered for receiving. Steps to reproduce: Prerequisite: use an upgraded test database containing an old order line with a cancellation date, status new, ordered or partial, and an outstanding quantity. Keep a normal outstanding order for the same vendor as a control. 1. Go to Acquisitions. 2. Open the vendor used by the two order lines. 3. Click "Receive shipments". 4. Create or open an invoice. 5. Look at the Pending orders table. Actual result: The obsolete order line with a cancellation date is listed together with the normal outstanding order. Expected result: The order line with a cancellation date is not listed. The normal outstanding order remains available for receiving. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36018 [Bug 36018] Improve consistency in Acquisition/Order(s) regarding active/current orders -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.