Show CORE-specific datetime for member equity payments
This commit is contained in:
parent
44a7a762d4
commit
ab6580b048
|
@ -96,6 +96,7 @@ class MemberEquityPaymentViewSupplement(ViewSupplement):
|
||||||
'corepos_transaction_number': "CORE-POS Transaction Number",
|
'corepos_transaction_number': "CORE-POS Transaction Number",
|
||||||
'corepos_transaction_id': "CORE-POS Transaction ID",
|
'corepos_transaction_id': "CORE-POS Transaction ID",
|
||||||
'corepos_department_number': "CORE-POS Department Number",
|
'corepos_department_number': "CORE-POS Department Number",
|
||||||
|
'corepos_datetime': "CORE-POS Date/Time",
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_grid_query(self, query):
|
def get_grid_query(self, query):
|
||||||
|
@ -117,6 +118,9 @@ class MemberEquityPaymentViewSupplement(ViewSupplement):
|
||||||
g.set_filter('corepos_department_number', model.CoreMemberEquityPayment.corepos_department_number)
|
g.set_filter('corepos_department_number', model.CoreMemberEquityPayment.corepos_department_number)
|
||||||
g.set_sorter('corepos_department_number', model.CoreMemberEquityPayment.corepos_department_number)
|
g.set_sorter('corepos_department_number', model.CoreMemberEquityPayment.corepos_department_number)
|
||||||
|
|
||||||
|
g.set_filter('corepos_datetime', model.CoreMemberEquityPayment.corepos_datetime)
|
||||||
|
g.set_sorter('corepos_datetime', model.CoreMemberEquityPayment.corepos_datetime)
|
||||||
|
|
||||||
g.append('corepos_transaction_number')
|
g.append('corepos_transaction_number')
|
||||||
g.set_label('corepos_transaction_number', "CORE-POS Trans. No.")
|
g.set_label('corepos_transaction_number', "CORE-POS Trans. No.")
|
||||||
if 'corepos_transaction_number' in g.filters:
|
if 'corepos_transaction_number' in g.filters:
|
||||||
|
@ -128,6 +132,7 @@ class MemberEquityPaymentViewSupplement(ViewSupplement):
|
||||||
f.append('corepos_transaction_number')
|
f.append('corepos_transaction_number')
|
||||||
f.append('corepos_transaction_id')
|
f.append('corepos_transaction_id')
|
||||||
f.append('corepos_department_number')
|
f.append('corepos_department_number')
|
||||||
|
f.append('corepos_datetime')
|
||||||
|
|
||||||
def get_version_child_classes(self):
|
def get_version_child_classes(self):
|
||||||
model = self.model
|
model = self.model
|
||||||
|
|
Loading…
Reference in a new issue