To reproduce search for historic orders from the acquisitions home screen. Click on a displayed invoice number you will be taken to a receipt screen but not to the items on that invoice. The correct linking key needs to be passed
Created attachment 18319 [details] [review] Proposed patch To test: Without this patch selecting an invoice number on the histsearch screen returns apparently random orderlines. With patch applied it should retrieve the correct invoice and its associated orderlines
Created attachment 18349 [details] [review] [SIGNED-OFF] Bug 10313 Fix link to invoice from orders Need to have invoiceid and pass it to retrieve selected invoicenumber. Wrong data passed causing incorrect records to be displayed Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Simple patch, easy to test
QA comment: Clearly a bug. Another bug exist on the parcel page, I will open a new report. Marked as Passed QA.
Created attachment 18351 [details] [review] Bug 10313 Fix link to invoice from orders Need to have invoiceid and pass it to retrieve selected invoicenumber. Wrong data passed causing incorrect records to be displayed Signed-off-by: Julian Maurice <julian.maurice@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Pushed to master. Thanks, Colin!
This patch has been pushed to 3.12.x, will be in 3.12.1.
Pushed to 3.10.x, will be in 3.10.7