Expose new Member.number
field
This commit is contained in:
parent
970b5871e5
commit
72796d1e04
|
@ -38,6 +38,10 @@
|
|||
<div style="display: flex; justify-content: space-between; width: 100%;">
|
||||
<div style="flex-grow: 1;">
|
||||
|
||||
<b-field horizontal label="Number">
|
||||
{{ member.number }}
|
||||
</b-field>
|
||||
|
||||
<b-field horizontal label="ID">
|
||||
{{ member.id }}
|
||||
</b-field>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2019 Lance Edgar
|
||||
# Copyright © 2010-2020 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -50,6 +50,7 @@ class MemberView(MasterView):
|
|||
}
|
||||
|
||||
grid_columns = [
|
||||
'number',
|
||||
'id',
|
||||
'person',
|
||||
'customer',
|
||||
|
@ -62,6 +63,7 @@ class MemberView(MasterView):
|
|||
]
|
||||
|
||||
form_fields = [
|
||||
'number',
|
||||
'id',
|
||||
'person',
|
||||
'customer',
|
||||
|
@ -105,7 +107,7 @@ class MemberView(MasterView):
|
|||
g.set_filter('email', model.MemberEmailAddress.address)
|
||||
g.set_label('email', "Email Address")
|
||||
|
||||
g.set_sort_defaults('id')
|
||||
g.set_sort_defaults('number')
|
||||
|
||||
g.set_link('person')
|
||||
g.set_link('customer')
|
||||
|
|
|
@ -384,6 +384,7 @@ class PeopleView(MasterView):
|
|||
def get_context_member(self, member):
|
||||
return {
|
||||
'uuid': member.uuid,
|
||||
'number': member.number,
|
||||
'id': member.id,
|
||||
'active': member.active,
|
||||
'joined': six.text_type(member.joined) if member.joined else None,
|
||||
|
|
Loading…
Reference in a new issue