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()