Koha-clms/acqui
Aleisha Amohia 70477134ac
Bug 31632: Link a suggestion to an existing order
This enhancement allows library staff to link an order (in an unclosed basket, or a standing order) to an accepted suggestion.

To test:

1) In the staff interface, go to Suggestions and create at least two suggestions.
2) Mark at least two suggestions as Accepted.
3) Go to Acquisitions, create a vendor if you don't have one already.
4) Have or create two baskets - one should be standing, and one not standing (normal).
5) In the normal basket (not standing), add an order from any source but NOT from a suggestion.
6) When you save the order, there should be a new link in the Modify column of the Orders table - "Search for suggestion to link". Click this.
7) Choose one of your suggestions to link to the order.
8) You should be redirected back to the basket. Confirm your order has been correctly linked to the suggestion. Confirm there is no link to "Search for suggestion to link" for this order now that a suggestion has already been linked.
9) Add another order to this basket from any source but NOT from a suggestion.
10) Close the basket. Confirm there is no link to "Search for suggestion to link" because the basket is closed, but you could reopen the basket to link the order if you wanted to.
11) Go to Baskets in the left navigation so you can find your standing basket.
12) Add an order to your standing basket from any source but NOT from a suggestion.
13) Go to the vendor and Receive shipments. Receive your standing order and finish receiving.
14) Go to the standing basket. There should be a new unreceived standing order for the record you just received, with a link to "Search for suggestion to link". Click this.
15) Choose a suggestion to link to the order.
16) You should be redirected back to the basket. Confirm your orders for this record have been correctly linked to the suggestion.

Sponsored-by: Pymble Ladies' College
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 7546669920)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-07-10 22:47:23 +02:00
..
acqui-home.pl Bug 39044: Pass budgets to template 2025-02-13 15:31:00 +01:00
addorder.pl Bug 35044: (QA follow-up): DRY code before set_additional_fields 2024-08-23 18:21:26 +02:00
addorderiso2709.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ajax-getauthvaluedropbox.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
basket.pl Bug 38010: (QA follow-up) Restore navigation links 2025-05-02 17:19:01 +02:00
basketgroup.pl Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
basketheader.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
booksellers.pl Bug 40066: Restore budget check to booksellers.pl 2025-06-17 21:43:04 +02:00
cancelorder.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
check_budget_total.pl Bug 39325: Manual fixes 2025-04-28 18:51:23 +02:00
check_uniqueness.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
duplicate_orders.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
edifactmsgs.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
edimsg.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
finishreceive.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
histsearch.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
invoice-files.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
invoice.pl Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
invoices.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
lateorders-export.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
lateorders.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
moddeliverydate.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
modordernotes.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
neworderempty.pl Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
newordersubscription.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
newordersuggestion.pl Bug 31632: Link a suggestion to an existing order 2025-07-10 22:47:23 +02:00
ordered.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
orderreceive.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
parcel.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
parcels.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
showorder.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
spent.pl Bug 39319: Fixes for Pod::Checker 2025-04-14 08:51:21 +02:00
transferorder.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
uncertainprice.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
vendor_issues.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
vendors.pl Bug 38010: (QA follow-up) Move syspref values to config endpoint 2025-05-02 17:19:26 +02:00
z3950_search.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00