Default filter CORE trans archive by today's date
This commit is contained in:
parent
65faa862a1
commit
560857665a
|
@ -56,6 +56,11 @@ class TransactionDetailMasterView(CoreMasterView):
|
|||
|
||||
def configure_grid(self, 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('item_quantity', 'quantity')
|
||||
|
|
Loading…
Reference in a new issue