[Bug 43160] New: Overdue notice : add option to disable notice for a category
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43160 Bug ID: 43160 Summary: Overdue notice : add option to disable notice for a category Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: marion.durand@biblibre.com QA Contact: testopia@bugs.koha-community.org CC: martin.renvoize@openfifth.co.uk Target Milestone: --- If a default rule is set for a patron category, a specific library can't decide to not send a notice for this category. If we set nothing for the library, the default rule is taken, if we set a delay and a notice (and optionally a restriction) but no transport type (email, phone, print, ...), the default rule transport type is is still taken. In reality this module don't differentiate "I don't want to send notice" and "There is nothing setup, check the default rule" We could add a checkbox "No notices" next to other transport type to allow explicitly cutting notices for this library/category. To reproduce : 0- Have at least one category with "Overdue notice required" set to Yes 1- Go to Tools > Overdue notice/status triggers 2- In the "Default" rule set, for a category A : set a delay, a letter and select at least one transport type (email, print, sms, ...) 3- In a library (B) specific rule set, for the same category A : set a delay, a letter but do not select a transport type (email, print, sms) 4- Setup an overdue for a borrower in category A from library B (on an item from library B) 5- Run the script misc/cronjob/overdue_notices.pl What we want is to apply the library specific rule and send nothing. What happens is taking the library specific delay and letter, but the default transport type (as there is none for library specific) -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43160 --- Comment #1 from Marion Durand <marion.durand@biblibre.com> --- Technical note : In the codeof overdue_notices.pl, we look for a library specific rule, and if there is none, the we take the default one. Then, when sending the notice, we look for what transport type to use with the following code ``` my @message_transport_types = @{ GetOverdueMessageTransportTypes( $branchcode, $overdue_rules->{categorycode}, $i) }; @message_transport_types = @{ GetOverdueMessageTransportTypes( q{}, $overdue_rules->{categorycode}, $i) } unless @message_transport_types; ``` This means that, even if we have a rule defined for a branchcode, if no transport type is associated with this rule, we still take the default transport type. My suggestion is to add a transport type that is "no transport type" (in addition to email, print, sms, phone, itivia, ...). That way, we do not alter the current behavior but we add a possibility to explicitally stop sending email for a category. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org