https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39595

            Bug ID: 39595
           Summary: Allow membership_expiry.pl to limit based on patron
                    attribute
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

The membership_expiry cron can take a "WHERE" value to check against the
borrowers table in order to limit who gets renewed/notified (like "where
categorycode != 'STAFF'").

It'd be helpful to have a way to check a patron attribute here, too. Maybe we
could add options to the cron for "-attribute_code" and "-attribute_value" to
limit only to patrons who have an attribute that matches the code and value?

This is technically possible with the current WHERE implementation: -where
'me.borrowernumber in (select borrowernumber from borrower_attributes where
code="show_bcode" and attribute=1)'

But making is an explicit option would be more clear.

-- 
You are receiving this mail because:
You are the assignee for the bug.
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/

Reply via email to