Default filter CORE trans archive by today's date

This commit is contained in:
Lance Edgar 2023-11-03 12:10:37 -05:00
parent 65faa862a1
commit 560857665a

View file

@ -56,6 +56,11 @@ class TransactionDetailMasterView(CoreMasterView):
def configure_grid(self, g): def configure_grid(self, g):
super().configure_grid(g) super().configure_grid(g)
app = self.get_rattail_app()
g.filters['date_time'].default_active = True
g.filters['date_time'].default_verb = 'equal'
g.filters['date_time'].default_value = str(app.today())
g.set_type('quantity', 'quantity') g.set_type('quantity', 'quantity')
g.set_type('item_quantity', 'quantity') g.set_type('item_quantity', 'quantity')