Expose CORE card number for members view

This commit is contained in:
Lance Edgar 2023-10-12 10:35:22 -05:00
parent cfb416578c
commit 2d9759e021

View file

@ -52,6 +52,7 @@ class MemberViewSupplement(ViewSupplement):
labels = {
'corepos_account_id': "CORE-POS Account ID",
'corepos_card_number': "CORE-POS Card Number",
}
def get_grid_query(self, query):
@ -61,9 +62,11 @@ class MemberViewSupplement(ViewSupplement):
def configure_grid(self, g):
model = self.model
g.set_filter('corepos_account_id', model.CoreMember.corepos_account_id)
g.set_filter('corepos_card_number', model.CoreMember.corepos_card_number)
def configure_form(self, f):
f.append('corepos_account_id')
f.append('corepos_card_number')
def get_version_child_classes(self):
model = self.model