From 2d9759e02147f0466bffe5667c086ae2dc23eac6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 12 Oct 2023 10:35:22 -0500 Subject: [PATCH] Expose CORE card number for members view --- tailbone_corepos/views/members.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tailbone_corepos/views/members.py b/tailbone_corepos/views/members.py index cca122f..298b1dd 100644 --- a/tailbone_corepos/views/members.py +++ b/tailbone_corepos/views/members.py @@ -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