https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18783
--- Comment #35 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 211088 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211088&action=edit Bug 18783: Allow automatic claims for serials This patch adds a new script misc/cronjobs/claim_serials.pl which send email notification to all suppliers that have late or missing issues. This is configurable per subscription and is disabled by default. Test plan: 1. Create a new bookseller B1 with a delivery time of 5 days 2. Create a new daily subscription with bookseller B1 and enable automatic claims (new checkbox on the first page of subscription-add.pl) 3. Generate some late serials with an expected date in the past (some with more than 5 days in the past, some with less) 4. Create a notice for module "Claim serial issue" CLAIMSERIAL and write something in the 'Email' template 5. Run `misc/cronjobs/claim_serials.pl --letter-code CLAIMSERIAL` and verify that it sends an email notification only for serials that were expected more than 5 days ago Updated for current main: - The atomicupdate is named bug_18783.pl, adds the column as tinyint(1) like kohastructure.sql, and uses the Koha::Installer::Output helpers. - GetLateOrMissingIssues no longer selects serial.aqbooksellerid: the column only exists in the subscription table now, and the query failed. - claim_serials.pl no longer calls cronlogaction, which it did not import and which Koha::Script -cron already does, and uses https in its licence header. Rescued-by: Martin Renvoize <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
