;journal: account types: fix broken tests

This commit is contained in:
Simon Michael 2020-07-17 10:04:06 -07:00
parent e057857c04
commit cb599111a6

View File

@ -1,74 +1,74 @@
; # Here some accounts with type Asset and Cash are declared and # Here some accounts with type Asset and Cash are declared and
; # Liability, Equity, Revenue and Expense accounts are inferred. # Liability, Equity, Revenue and Expense accounts are inferred.
; < <
; account assets ; type:Asset account assets ; type:Asset
; account assets:cash ; type:Cash account assets:cash ; type:Cash
; account liabilities account liabilities
; 2020-01-01 2020-01-01
; assets 1 assets 1
; assets:cash 1 assets:cash 1
; liabilities -1 liabilities -1
; revenues 1 revenues -1
; expenses -1 expenses 1
; equity equity
; # 1. bse reports the balance sheet accounts in the proper section. # 1. bse reports the balance sheet accounts in the proper section.
; # A Cash account is also an Asset. # A Cash account is also an Asset.
; $ hledger -f- bse $ hledger -f- bse
; Balance Sheet With Equity 2020-01-01 Balance Sheet With Equity 2020-01-01
; || 2020-01-01 || 2020-01-01
; =============++============ =============++============
; Assets || Assets ||
; -------------++------------ -------------++------------
; assets || 1 assets || 1
; assets:cash || 1 assets:cash || 1
; -------------++------------ -------------++------------
; || 2 || 2
; =============++============ =============++============
; Liabilities || Liabilities ||
; -------------++------------ -------------++------------
; liabilities || 1 liabilities || 1
; -------------++------------ -------------++------------
; || 1 || 1
; =============++============ =============++============
; Equity || Equity ||
; -------------++------------ -------------++------------
; equity || 1 equity || 1
; -------------++------------ -------------++------------
; || 1 || 1
; =============++============ =============++============
; Net: || 0 Net: || 0
; # 2. cashflow reports the Cash account. # 2. cashflow reports the Cash account.
; $ hledger -f- cf $ hledger -f- cf
; Cashflow Statement 2020-01-01 Cashflow Statement 2020-01-01
; || 2020-01-01 || 2020-01-01
; =============++============ =============++============
; Cash flows || Cash flows ||
; -------------++------------ -------------++------------
; assets:cash || 1 assets:cash || 1
; -------------++------------ -------------++------------
; || 1 || 1
; # 3. is reports the income statement accounts in the proper section. # 3. is reports the income statement accounts in the proper section.
; $ hledger -f- is $ hledger -f- is
; Income Statement 2020-01-01 Income Statement 2020-01-01
; || 2020-01-01 || 2020-01-01
; ==========++============ ==========++============
; Revenues || Revenues ||
; ----------++------------ ----------++------------
; revenues || 1 revenues || 1
; ----------++------------ ----------++------------
; || 1 || 1
; ==========++============ ==========++============
; Expenses || Expenses ||
; ----------++------------ ----------++------------
; expenses || 1 expenses || 1
; ----------++------------ ----------++------------
; || 1 || 1
; ==========++============ ==========++============
; Net: || 0 Net: || 0