Changeset - 99f97d3f5849
[Not reviewed]
0 2 0
Brett Smith - 4 years ago 2020-03-05 17:23:03
brettcsmith@brettcsmith.org
expenseAllocation: Accept 'admin' shorthand for 'administration'.
2 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/plugin/meta_expense_allocation.py
Show inline comments
...
 
@@ -23,6 +23,8 @@ class ExpenseAllocations(enum.Enum):
 
    fundraising = 'fundraising'
 
    program = 'program'
 

	
 
    admin = administration
 

	
 

	
 
class MetaExpenseAllocation(core.PostingChecker):
 
    ACCOUNTS = ('Expenses:',)
tests/test_meta_expenseAllocation.py
Show inline comments
...
 
@@ -24,6 +24,7 @@ VALID_VALUES = {
 
    'program': 'program',
 
    'administration': 'administration',
 
    'fundraising': 'fundraising',
 
    'admin': 'administration',
 
}
 

	
 
INVALID_VALUES = {
0 comments (0 inline, 0 general)