Koha-clms/Koha/Acquisition
Aleisha Amohia 8c663b9df3
Bug 33098: Revert suggestion status when orders are cancelled
This enhancement will revert the status of a suggestion from ORDERED to
ACCEPTED when an order made from a suggestion is cancelled.

To test:
1. Log into the OPAC and go to purchase suggestions
2. Add a new purchase suggestion
3. Log into the staff interface. The suggestion will show on the home
page
4. Select the suggestion and mark it as Accepted
5. Go to Acquisitions. Find or create a basket
6. Add an order to the basket from a suggestion
7. You'll be redirected to the suggestions page. Click the order button
next to your suggestion
8. Fill out the order details as normal and confirm the order.
9. In a new tab, go to the suggestions management page and confirm the
suggestion now shows as ORDERED.
10. In the other tab with your basket, cancel the order you just made
from the suggestion.
11. Refresh the suggestions management tab. Confirm the suggestion now
shows as ACCEPTED.
12. Confirm tests pass t/db_dependent/Koha/Acquisition/Order.t

Sponsored-by: Waikato Institute of Technology
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-16 10:17:12 -03:00
..
Bookseller Bug 33104: Encrypt password 2023-05-05 10:18:47 -03:00
Invoice Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Order Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Basket.pm Bug 28640: Expose EDI Status on basket details page 2021-07-26 12:46:32 +02:00
BasketGroup.pm Bug 24461: Add to_api_mapping to Koha::Acquisition::BasketGroup 2020-03-24 11:32:37 +00:00
BasketGroups.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Baskets.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Bookseller.pm Bug 33104: Encrypt password 2023-05-05 10:18:47 -03:00
Booksellers.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Budget.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Budgets.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Currencies.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Currency.pm Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
Fund.pm Bug 15329: Add new column for budget to the late orders table 2020-11-04 12:59:34 +01:00
Funds.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Invoice.pm Bug 31115: Add support for additional fields for invoices 2022-10-24 14:11:06 -03:00
Invoices.pm Bug 31115: Add support for additional fields for invoices 2022-10-24 14:11:06 -03:00
Order.pm Bug 33098: Revert suggestion status when orders are cancelled 2023-05-16 10:17:12 -03:00
Orders.pm Bug 33653: Use filter_by_active instead 2023-05-09 10:58:07 -03:00