Changeset - 9e8fe470200c
[Not reviewed]
0 1 0
Lance Edgar (lance) - 2 years ago 2022-07-19 09:51:53
lance@edbob.org
Add `get_last_patronage_date()` method for membership handler
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail/membership.py
Show inline comments
 
# -*- coding: utf-8; -*-
 
################################################################################
 
#
 
#  Rattail -- Retail Software Framework
 
#  Copyright © 2010-2021 Lance Edgar
 
#  Copyright © 2010-2022 Lance Edgar
 
#
 
#  This file is part of Rattail.
 
#
 
#  Rattail is free software: you can redistribute it and/or modify it under the
 
#  terms of the GNU General Public License as published by the Free Software
 
#  Foundation, either version 3 of the License, or (at your option) any later
 
@@ -71,6 +71,9 @@ class MembershipHandler(GenericHandler):
 
        Returns the person associated with the given member, if there is one.
 
        """
 
        clientele = self.app.get_clientele_handler()
 
        customer = self.get_customer(member)
 
        person = clientele.get_person(customer)
 
        return person
 

	
 
    def get_last_patronage_date(self, member, **kwargs):
 
        raise NotImplementedError
0 comments (0 inline, 0 general)