Expose status code for equity payments
This commit is contained in:
parent
bbffe1dc82
commit
9fa592c5d6
|
@ -423,6 +423,10 @@ class MemberEquityPaymentView(MasterView):
|
||||||
supports_grid_totals = True
|
supports_grid_totals = True
|
||||||
has_versions = True
|
has_versions = True
|
||||||
|
|
||||||
|
labels = {
|
||||||
|
'status_code': "Status",
|
||||||
|
}
|
||||||
|
|
||||||
grid_columns = [
|
grid_columns = [
|
||||||
'received',
|
'received',
|
||||||
'_member_key_',
|
'_member_key_',
|
||||||
|
@ -431,6 +435,7 @@ class MemberEquityPaymentView(MasterView):
|
||||||
'description',
|
'description',
|
||||||
'source',
|
'source',
|
||||||
'transaction_identifier',
|
'transaction_identifier',
|
||||||
|
'status_code',
|
||||||
]
|
]
|
||||||
|
|
||||||
form_fields = [
|
form_fields = [
|
||||||
|
@ -441,6 +446,7 @@ class MemberEquityPaymentView(MasterView):
|
||||||
'description',
|
'description',
|
||||||
'source',
|
'source',
|
||||||
'transaction_identifier',
|
'transaction_identifier',
|
||||||
|
'status_code',
|
||||||
]
|
]
|
||||||
|
|
||||||
def query(self, session):
|
def query(self, session):
|
||||||
|
@ -482,6 +488,9 @@ class MemberEquityPaymentView(MasterView):
|
||||||
|
|
||||||
g.set_link('transaction_identifier')
|
g.set_link('transaction_identifier')
|
||||||
|
|
||||||
|
# status_code
|
||||||
|
g.set_enum('status_code', model.MemberEquityPayment.STATUS)
|
||||||
|
|
||||||
def render_member_key(self, payment, field):
|
def render_member_key(self, payment, field):
|
||||||
key = getattr(payment.member, field)
|
key = getattr(payment.member, field)
|
||||||
return key
|
return key
|
||||||
|
@ -531,6 +540,9 @@ class MemberEquityPaymentView(MasterView):
|
||||||
else:
|
else:
|
||||||
f.set_readonly('received')
|
f.set_readonly('received')
|
||||||
|
|
||||||
|
# status_code
|
||||||
|
f.set_enum('status_code', model.MemberEquityPayment.STATUS)
|
||||||
|
|
||||||
|
|
||||||
def defaults(config, **kwargs):
|
def defaults(config, **kwargs):
|
||||||
base = globals()
|
base = globals()
|
||||||
|
|
Loading…
Reference in a new issue