From 77d16eb473a7ccfd06b5e06ad3e6edbcc73c8a75 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 15 Sep 2023 10:39:32 -0500 Subject: [PATCH] Tweak CORE datetime field display for member equity payments grid --- tailbone_corepos/views/members.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tailbone_corepos/views/members.py b/tailbone_corepos/views/members.py index c428766..dc75298 100644 --- a/tailbone_corepos/views/members.py +++ b/tailbone_corepos/views/members.py @@ -117,15 +117,18 @@ class MemberEquityPaymentViewSupplement(ViewSupplement): g.set_filter('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.set_label('corepos_transaction_number', "CORE-POS Trans. No.") if 'corepos_transaction_number' in g.filters: g.filters['corepos_transaction_number'].label = self.labels['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): f.append('corepos_card_number') f.append('corepos_transaction_number')