Expose status code for equity payments

This commit is contained in:
Lance Edgar 2023-11-05 16:57:14 -06:00
parent bbffe1dc82
commit 9fa592c5d6

View file

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