Changeset - 9699f4e52766
[Not reviewed]
0 2 0
Brett Smith - 4 years ago 2020-06-25 17:52:37
brettcsmith@brettcsmith.org
income_type: Set a default for TrademarkSales. RT#8869.
2 files changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/plugin/meta_income_type.py
Show inline comments
...
 
@@ -40,6 +40,7 @@ class MetaIncomeType(core._NormalizePostingMetadataHook):
 
        'Income:Sales': 'RBI',
 
        'Income:SoftwareDevelopment': 'RBI',
 
        'Income:TrademarkLicensing': 'RBI',
 
        'Income:TrademarkSales': 'RBI',
 
    }
 

	
 
    def _run_on_post(self, txn: Transaction, post: data.Posting) -> bool:
tests/test_meta_income_type.py
Show inline comments
...
 
@@ -111,6 +111,7 @@ def test_non_income_accounts_skipped(hook, account):
 
    ('Income:Sales', 'RBI'),
 
    ('Income:SoftwareDevelopment', 'RBI'),
 
    ('Income:TrademarkLicensing', 'RBI'),
 
    ('Income:TrademarkSales', 'RBI'),
 
])
 
def test_default_values(hook, account, set_value):
 
    txn = testutil.Transaction(postings=[
0 comments (0 inline, 0 general)