https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20478
--- Comment #3 from Andreas Jonsson <andreas.jons...@kreablo.se> --- Created attachment 73310 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73310&action=edit Bug 20478: Have the cronjob script advance_notices.pl send digest messages per branch. Desired behavior of the script advance_notices.pl is that the sender address on the notice message is that of the branch of the issues in question. Thus, the solution is to generate digest messages per branch. To test: 1) Inspect unit test in t/db_dependent/cronjobs/advance_notices_digest.t and note that: - There are three libraries - There is a borrower - The borrower is registered at library1 - The borrower has message preference wants_digest set to 1 - The borrower has message preference days_in_advance set to 1 - The content of the letter PREDUEDGST is '<<count>> <<branches.branchname>>' - There are three items - There is one issue per item - There is one issues at library2 - There are two issues at library3 - The date_due of the issues are set to tomorrow - It is asserted that there are two messages in the message queue after running the script - It is asserted that the item count of the message corresponding to library2 is 1 - It is asserted that the item count of the message corresponding to library3 is 2 - It is asserted that the branchnames are correct. 2) Run unit test: prove t/db_dependent/cronjobs/advance_notices_digest.t Sponsored-By: The Bibliotek Mellansjö coallition consisting of: Gullspångs kommunbibliotek, Hjo stadsbibliotek, Karlsborgs bibliotek, Mariestads stadsbibliotek, Skövde stadsbibliotek, Tibro bibliotek, Tidaholms stadsbibliotek, Töreboda kommunbibliotek -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/