]> git.koha-community.org Git - koha.git/commit
Bug 27946: Make Koha::ArticleRequest->request add a fee if required
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 17 Dec 2021 13:29:53 +0000 (10:29 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 28 Jan 2022 21:09:07 +0000 (11:09 -1000)
commitb4fd79e750326f5492154cba39f7a254160512e4
tree282b58a67d05143ccf221aa8d8e32ea77e528d69
parentd5c8aad712e72612f3212cf322b90cdf1fa00ca7
Bug 27946: Make Koha::ArticleRequest->request add a fee if required

This patch makes the ->request method add a fee for the patron if
required. It relies on methods defined in Koha::Patron for the task. The
debit line is linked to the AR if applies.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/ArticleRequest.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/ArticleRequest.pm
t/db_dependent/Koha/ArticleRequest.t