From 3bf0f19bb5800a645a459836b74e93bd396579f1 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 16 May 2018 17:23:15 -0700 Subject: [PATCH] budget: another func test against my confusion --- tests/budget/budget.test | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tests/budget/budget.test b/tests/budget/budget.test index d60651225..b7041d8ab 100644 --- a/tests/budget/budget.test +++ b/tests/budget/budget.test @@ -279,3 +279,34 @@ Budget performance in 2018/01/01: || 2018/01/01 ===++========================== a || 1 [ 100% of 1] + +# 13. budget goals on both parent and subaccounts are counted +< +~ daily + (a) 100 + (a:b:c) 1 + +2018/1/1 + (a) 1 + (a:b:c) 1 + +$ hledger -f- bal --budget +Budget performance in 2018/01/01: + + || 2018/01/01 +=======++========================== + a || 1 [ 1% of 100] + a:b:c || 1 [ 100% of 1] +-------++-------------------------- + || 2 [ 2% of 101] + +$ hledger -f- bal --budget --tree +Budget performance in 2018/01/01: + + || 2018/01/01 +=======++========================== + a || 2 [ 2% of 101] + b || 1 [ 100% of 1] + c || 1 [ 100% of 1] +-------++-------------------------- + || 2 [ 2% of 101]