Koha-clms/t/db_dependent/Koha
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
..
Account Bug 31735: Avoid re-fetcing objects from database by passing them directly instead of ids to various subroutines 2023-05-12 12:40:21 -03:00
Acquisition Bug 33098: Revert suggestion status when orders are cancelled 2023-05-16 10:17:12 -03:00
Auth Bug 31378: (QA follow-up) Tidy tests 2022-11-08 14:40:17 -03:00
BackgroundJob Bug 32781: Prevent import from list to fail if package does not exist 2023-03-13 15:56:41 -03:00
BackgroundJobs Bug 32366: (bug 30460 follow-up) Add tests 2022-12-01 10:02:21 -03:00
Biblio Bug 3150: (follow-up) Make sure host information displays for unlinked records 2023-03-27 12:49:44 +02:00
BiblioUtils
…
Cash Bug 27779: (QA follow-up) Fix unit test 2022-08-09 07:37:03 -03:00
Charges Bug 32351: Fix t/db_dependent/Koha/Charges/Sales.t 2022-11-30 15:58:20 -03:00
Checkouts Bug 28854: (QA follow-up) Remove duplicate key test 2022-07-13 10:36:14 -03:00
CirculationRules
…
Club
…
Config
…
Database Bug 33584: Fix failures for Commenter.t on MySQL8 2023-04-24 12:08:00 -03:00
ERM Bug 32267: (bug 32154 follow-up) Fix Agreements.t 2022-11-18 12:04:25 -03:00
Edifact
…
Filter Bug 33214: (follow-up) Make tests less fragile 2023-03-13 16:53:25 -03:00
Import Bug 32437: Add replace method to Koha::Import::Record objects 2023-03-31 13:13:26 +02:00
Item Bug 24606: (QA follow-up) Fix Template.t 2022-11-22 13:33:39 -03:00
Items Bug 32019: Unit tests 2023-02-20 09:54:19 -03:00
Library
…
Object/Mixin Bug 11844: (follow-up) Fix tests 2023-05-16 12:58:38 +02:00
Objects Bug 33083: Add a generic class to handle methods for collections of records 2023-03-13 15:11:59 -03:00
Old Bug 26648: Add tests 2022-10-12 09:56:48 -03:00
Patron Bug 12029: Remove 'params' from filter_by_unread 2023-04-20 15:48:47 -03:00
Patrons Bug 27920: Add ability to update patron expiration dates when importing patrons 2022-11-09 14:37:07 -03:00
Plugins Bug 29274: Remove z_reset.t 2022-12-01 09:33:04 -03:00
REST Bug 32713: (QA follow-up) Tests now require more complex structures 2023-03-17 18:27:09 -03:00
SMTP Bug 27424: (QA follow-up) Make Koha::SMTP::Server->store deal with defaults 2023-01-31 10:52:49 -03:00
SearchEngine Bug 33206: Unit test 2023-05-09 11:46:53 -03:00
Subscription
…
Tags
…
Template/Plugin Bug 11844: Take into account itemtypes, branches, and cn_source 2023-05-16 12:58:38 +02:00
Ticket Bug 31028: Add new Koha::Object(s) classes 2023-03-06 11:23:17 -03:00
UI/Form/Builder Bug 32484: (QA follow-up) Polishing unit test 2023-04-21 10:36:29 -03:00
XSLT
…
Z3950Responder Bug 29234: Further clean Z3950 Tests 2023-04-03 10:49:58 -03:00
Account.t
…
ActionLogs.t
…
AdditionalContents.t Bug 29144: Add $contents->find_best_match, $library->opac_info 2022-09-16 09:55:19 -03:00
AdditionalField.t Bug 11844: Add tests 2023-05-16 12:58:38 +02:00
ApiKey.t
…
ArticleRequest.t
…
ArticleRequests.t
…
Authorities.t Bug 32735: (follow-up) Make Koha::Objects::Record::Collections->print_collection work with Authorities and Biblios 2023-05-05 12:13:50 -03:00
BackgroundJob.t Bug 32394: Add tests 2022-12-14 14:32:27 -03:00
BackgroundJobs.t Bug 31969: Use filter_by_last_update 2022-11-25 09:40:09 -03:00
Biblio.t Bug 33447: Make *->pickup_locations methods throw an exception on missing parameter 2023-04-20 15:48:32 -03:00
BiblioFrameworks.t
…
Biblios.t Bug 33447: Make *->pickup_locations methods throw an exception on missing parameter 2023-04-20 15:48:32 -03:00
Checkout.t Bug 30275: Add Unit test for renewals relation 2022-07-05 09:46:22 -03:00
Checkouts.t Bug 30612: Rename other occurrences 2022-08-01 09:59:05 -03:00
CirculationRules.t Bug 23012: (QA follow-up) No need to create and delete rules for branch 2022-10-24 17:43:30 -03:00
Cities.t
…
ClassSortRules.t
…
ClassSources.t
…
ClassSplitRules.t
…
CoverImages.t
…
CsvProfiles.t
…
CurbsidePickups.t Bug 32891: (QA follow-up) Fix perlcritic error 2023-02-21 10:22:33 -03:00
Database.t
…
Desks.t
…
Encryption.t
…
Hold.t Bug 33229: (follow-up) Adjust tests to set anonymous patron before setting patron privacy to 2 2023-04-17 09:55:48 -03:00
Holds.t Bug 32650: Prevent Koha/Holds.t to fail randomly 2023-01-18 16:49:35 +00:00
Illrequests.t Bug 22440: Add Koha::Illrequests->filter_by_visible 2023-05-05 09:13:40 -03:00
Item.t Bug 8179: (QA follow-up) Fix files permissions 2023-05-15 18:24:01 -03:00
ItemTypes.t
…
Items.t Bug 31212: (QA follow-up) Fix unit test, remove unused imports 2023-05-12 17:49:59 -03:00
KeyboardShortcuts.t
…
Libraries.t
…
Library.t Bug 29144: Add $contents->find_best_match, $library->opac_info 2022-09-16 09:55:19 -03:00
MarcSubfieldStructures.t
…
Notice_Util.t Bug 33360: Extend Koha::Notice::Util with domain groups 2023-04-14 11:35:30 -03:00
Notices.t
…
Object.t Bug 31735: Avoid re-fetcing objects from database by passing them directly instead of ids to various subroutines 2023-05-12 12:40:21 -03:00
Objects.t
…
Old.t
…
Patron.t Bug 30418: Unit tests 2023-05-15 18:23:58 -03:00
Patron_generate_userid.t Bug 32426: Patron::generate_userid - add plugin hook 2023-03-27 12:49:50 +02:00
Patrons.t Bug 33192: Update all occurrences of AutoEmailPrimaryAddress 2023-04-14 11:35:39 -03:00
Pseudonymization.t Bug 31201: Prevent Pseudonymization.t to fail 2022-07-21 09:39:28 -03:00
Quotes.t
…
Ratings.t
…
Recall.t
…
Recalls.t
…
Reports.t Bug 29579: (QA follow-up) Fix up t/db_dependent/Koha/Reports.t 2022-08-01 14:37:09 -03:00
Reviews.t
…
SMS_Providers.t
…
SearchField.t
…
SharedContent.t
…
Statistics.t Bug 30928: Add tests 2023-05-10 14:19:21 -03:00
Subscription.t
…
Suggestion.t
…
Suggestions.t
…
Tags.t
…
Ticket.t Bug 31028: (follow-up) Fix executable bit 2023-03-07 14:54:29 -03:00
Virtualshelf.t Bug 30933: Unit tests 2022-07-20 09:04:07 -03:00
Virtualshelves.t Bug 31288: Regression tests 2022-08-03 11:42:39 -03:00
Z3950Servers.t Bug 30571: Z3950Servers.t - Add another subtest 2022-10-03 08:29:25 -03:00