]> git.koha-community.org Git - koha.git/commit
Bug 29346: Circulation actions triggers
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 16 Mar 2022 21:05:55 +0000 (18:05 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 5 May 2022 21:17:35 +0000 (11:17 -1000)
commit90b76521bf211d2986680c4e0dc35091b5ca6f87
tree0a3b07a9a6ab9495496f078d2f5f830af6c52a85
parentb09d93b4e9bf2a3f44080c25d34431f4ca2ed8bf
Bug 29346: Circulation actions triggers

This patch introduces triggers for real-time updating the holds queue at
check out and check in.

The following high-level methods are involved:

- C4::Circulation::AddIssue
- C4::Circulation::AddReturn

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

Note: I put the tests on a separate file because the other one was too
big already.

Sponsored-by: Montgomery County Public Libraries
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm
t/db_dependent/Circulation_holdsqueue.t [new file with mode: 0755]