# * balance command -%/--percent flag

# ** 1. Single column percent
$ hledger -f sample.journal balance expenses -% --tree
             100.0 %  expenses
              50.0 %    food
              50.0 %    supplies
--------------------
             100.0 %  

# ** 2. Multi column percent
$ hledger -f sample.journal balance expenses -% -p quarterly
Balance changes in 2008:

                   || 2008Q1   2008Q2  2008Q3  2008Q4 
===================++=================================
 expenses:food     ||      0   50.0 %       0       0 
 expenses:supplies ||      0   50.0 %       0       0 
-------------------++---------------------------------
                   ||      0  100.0 %       0       0 

# ** 3. In a balanced ledger everything should sum up to zero, therefore all percentages should be zero.
$ hledger -f sample.journal balance -% -p quarterly
Balance changes in 2008:

                      || 2008Q1  2008Q2  2008Q3  2008Q4 
======================++================================
 assets:bank:checking ||      0       0       0       0 
 assets:bank:saving   ||      0       0       0       0 
 assets:cash          ||      0       0       0       0 
 expenses:food        ||      0       0       0       0 
 expenses:supplies    ||      0       0       0       0 
 income:gifts         ||      0       0       0       0 
 income:salary        ||      0       0       0       0 
 liabilities:debts    ||      0       0       0       0 
----------------------++--------------------------------
                      ||      0       0       0       0 
