From 92941cf3ad44ea043402a482bbf42f983476b6ba Mon Sep 17 00:00:00 2001 From: Brad Campbell Date: Wed, 7 Sep 2016 17:25:15 -0400 Subject: [PATCH] allow undoing safe empties --- chezbetty/datalayer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chezbetty/datalayer.py b/chezbetty/datalayer.py index 827e650..4f0aff1 100644 --- a/chezbetty/datalayer.py +++ b/chezbetty/datalayer.py @@ -49,6 +49,7 @@ def wrapper(*args, **kwargs): def can_undo_event(e): if e.type != 'deposit' and e.type != 'purchase' and e.type != 'restock' \ and e.type != 'inventory' and e.type != 'emptycashbox' \ + and e.type != 'emptysafe' \ and e.type != 'donation' and e.type != 'withdrawal' \ and e.type != 'reimbursement': return False