]> git.koha-community.org Git - koha.git/commit
Bug 26515: Add Koha::Acquisition::Order->cancel
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 23 Sep 2020 14:36:21 +0000 (11:36 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 15 Oct 2020 12:50:06 +0000 (14:50 +0200)
commita9de5bd0eef958291a9a51cca2de9aa49a248b77
treebfaa166138118362f28c303b25848dcbdd5fdc3d
parent2d4d50ab290878a5aafef90470f5a5d977d689d7
Bug 26515: Add Koha::Acquisition::Order->cancel

This patch introduces an OO replacement for DelOrder. It does the same
thing. It doesn't die when trying to delete items or biblio. It sets an
error message on the order object so the caller knows what happened.

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Acquisition/Order.t
=> SUCCESS: Tests pass!
3. Read the tests carefully to understand how they cover all use cases.
4- Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Acquisition/Order.pm