Tweak CORE datetime field display for member equity payments grid

This commit is contained in:
Lance Edgar 2023-09-15 10:39:32 -05:00
parent 045940d4fa
commit 77d16eb473

View file

@ -117,15 +117,18 @@ 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:
g.filters['corepos_transaction_number'].label = self.labels['corepos_transaction_number'] g.filters['corepos_transaction_number'].label = self.labels['corepos_transaction_number']
g.set_link('corepos_transaction_number') g.set_link('corepos_transaction_number')
# corepos_datetime
g.append('corepos_datetime')
g.set_type('corepos_datetime', 'datetime')
g.set_filter('corepos_datetime', model.CoreMemberEquityPayment.corepos_datetime)
g.set_sorter('corepos_datetime', model.CoreMemberEquityPayment.corepos_datetime)
def configure_form(self, f): def configure_form(self, f):
f.append('corepos_card_number') f.append('corepos_card_number')
f.append('corepos_transaction_number') f.append('corepos_transaction_number')