Bug 23775: Claiming a serial issue doesn't create the next one
authorjeremy breuillard <jeremy.breuillard@biblibre.com>
Mon, 4 Apr 2022 09:00:09 +0000 (11:00 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Jul 2023 13:35:09 +0000 (10:35 -0300)
commitbd72f24d04a9843cdb6a86b2ee7a7adff1fc46bb
tree92b873a385d34520b46a08b6080f424be49980b8
parentb9ffc47100dbb13e966af73c713a6857cb9e8ca0
Bug 23775: Claiming a serial issue doesn't create the next one

Whenever we need to generate manually a new serial we go to page
'serials-edit.pl'. With this patch it is possible to generate a new
serial on page 'serials.pl'.

Test Plan:
-- Previously we need a serial which is in EXPECTED status & the Date
received should not be later than today --
1) On the intra. Make sure to have at least 1 subscription for a
   bibliographic record & 1 vendor linked
2) Then Home > Serials > Claims > Claims for <your_vendor_name>
3) Tick the checkbox of the row where the status is EXPECTED then
4) Click 'Send notification'
5) Notice the status of the row : it is now CLAIMED
6) To verify: Home > Serials > Serial collection information for
   <your_record_name>
7) Here the status is CLAIMED too but nothing happened around
8) Apply patch
9) Repeat from 2) to 6)
10) The status is still CLAIMED & the new serial with status EXPECTED is
    freshly generated

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Serials.pm
t/db_dependent/Serials/updateClaim.t [new file with mode: 0755]