From 9fa592c5d6e7f0d4ad0b247c41a2abd8b4dc6580 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 5 Nov 2023 16:57:14 -0600 Subject: [PATCH] Expose status code for equity payments --- tailbone/views/members.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tailbone/views/members.py b/tailbone/views/members.py index 3a4ff0a1..b1bb2a0d 100644 --- a/tailbone/views/members.py +++ b/tailbone/views/members.py @@ -423,6 +423,10 @@ class MemberEquityPaymentView(MasterView): supports_grid_totals = True has_versions = True + labels = { + 'status_code': "Status", + } + grid_columns = [ 'received', '_member_key_', @@ -431,6 +435,7 @@ class MemberEquityPaymentView(MasterView): 'description', 'source', 'transaction_identifier', + 'status_code', ] form_fields = [ @@ -441,6 +446,7 @@ class MemberEquityPaymentView(MasterView): 'description', 'source', 'transaction_identifier', + 'status_code', ] def query(self, session): @@ -482,6 +488,9 @@ class MemberEquityPaymentView(MasterView): g.set_link('transaction_identifier') + # status_code + g.set_enum('status_code', model.MemberEquityPayment.STATUS) + def render_member_key(self, payment, field): key = getattr(payment.member, field) return key @@ -531,6 +540,9 @@ class MemberEquityPaymentView(MasterView): else: f.set_readonly('received') + # status_code + f.set_enum('status_code', model.MemberEquityPayment.STATUS) + def defaults(config, **kwargs): base = globals()