https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31157
Caroline Cyr La Rose <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |caroline.cyr-la-rose@inlibr | |o.com --- Comment #2 from Caroline Cyr La Rose <[email protected]> --- To test: 1) Apply patch 2) Put different email addresses in branch A and branch B (doesn't have to be real email addresses, I used [email protected] and [email protected]) 2.1) Go to Administration > Libraries 2.2) Edit branch A (e.g. Centerville) 2.3) Enter an email address in 'Email' 2.4) Save 2.5) Repeat steps 2.1 to 2.4 for branch B (e.g. Midway), making sure it is a different email address 3) Set up overdue notice triggers 3.1) Go to Tools > Overdue notice/status triggers 3.2) Enter a number of days for a patron category (e.g. Patron) 3.3) Choose a letter to be sent (e.g. Overdue notice) 3.4) Check the 'Email' box 3.5) Save 4) Checkout an item from branch A to a patron while logged in at branch B 4.1) In the top right corner, make sure you are connected at branch B (if not, click the branch name and choose set library) 4.1) Go to Patrons 4.2) Search for or add a patron in the patron category from 3.2 4.3) Go to 'Check out' 4.4) Click 'Checkout settings' and select a due date in the past, equal or greater than the number of days from 3.2 4.5) Enter a barcode from an item from branch A and check out 5) Generate overdue notice 5.1) In a terminal, run overdue_notices.pl (without any options) 5.2) Search the database for the from_address of the overdue notice SELECT from_address FROM message_queue WHERE borrowernumber = XX; --> It should be branch B (script defaults to item-issuebranch) 6) Change OverdueNoticeFrom system preference to item home library 6.1) Go to Administration > Global system preferences 6.2) Search for OverdueNoticeFrom 6.3) Choose the 'item home library' option 6.4) Save 7) Delete notice and repeat 7.1) Delete the notice from the database DELETE FROM message_queue WHERE borrowernumber = XX; 7.2) Repeat step 5 --> The from_address should be branch A 8) Change OverdueNoticeFrom system preference to 'checkout library' 9) Delete notice and repeat --> The from_address should be branch B I tried the following combinations Item home library A, Checkout library B, syspref = system default, cron = no option --> from_address is branch B (script defaults to item-issuebranch) Item home library A, Checkout library B, syspref = item home library, cron = no option --> from_address is branch A (item home library according to syspref) Item home library A, Checkout library B, syspref = checkout library, cron = no option --> from_address is branch B (checkout library according to syspref) Item home library A, Checkout library B, syspref = system default, cron = --frombranch item-homebranch --> from_address is branch A (item home library according to cron) Item home library A, Checkout library B, syspref = system default, cron = --frombranch item-issuebranch --> from_address is branch B (checkout library according to cron) Item home library A, Checkout library B, syspref = item home library, cron = --frombranch item-issuebranch --> from_address is branch A (syspref overrides cron) Item home library A, Checkout library B, syspref = checkout library, cron = --frombranch item-homebranch --> from_address is branch B (syspref overrides cron) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://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/
