;cln: clarify #1698 test
This commit is contained in:
		
							parent
							
								
									7f320ebfa9
								
							
						
					
					
						commit
						4504c173fb
					
				| @ -328,37 +328,31 @@ $ hledger -f - balancesheet --tree --output-format=csv --drop 1 | |||||||
| "total" | "total" | ||||||
| "Net:","$1" | "Net:","$1" | ||||||
| 
 | 
 | ||||||
| # 14. When declaring account types, we want boring parents to include their | # 14. In compound reports like balancesheet, parent accounts might not have | ||||||
| # interesting children, including their historical postings. (#1698) | # the appropriate type for a subreport, but in tree reports they should be  | ||||||
|  | # displayed anyway, and with the right inclusive amounts and starting  | ||||||
|  | # balances. (#1698) | ||||||
| < | < | ||||||
| account assets:foobar:reserve    ; type: Cash | account assets:cash       ; type: Cash | ||||||
| account assets:foobar:current    ; type: Cash |  | ||||||
| account assets:receivable:anon   ; type: Asset |  | ||||||
| 
 | 
 | ||||||
| 2018-12-06 | account assets:checking   ; type: Asset | ||||||
|     assets:foobar:current              1 A | ; ^ disables auto-detection of Asset type, "assets" will not be considered an Asset | ||||||
|     expenses:example |  | ||||||
| 
 | 
 | ||||||
| 2019-01-04 | 2019-12-01 | ||||||
|     assets:foobar:current              1 A |   (assets:cash)    3 | ||||||
|     expenses:example |  | ||||||
| 
 | 
 | ||||||
| $ hledger -f - balancesheet --tree --no-elide --begin 2019-01-01 | 2020-01-01 | ||||||
| Balance Sheet 2019-01-04 |   (assets:cash)    2 | ||||||
| 
 | 
 | ||||||
|              || 2019-01-04  | $ hledger -f - bs -N -t --no-elide -b 2020 | ||||||
|  | Balance Sheet 2020-01-01 | ||||||
|  | 
 | ||||||
|  |              || 2020-01-01  | ||||||
| =============++============ | =============++============ | ||||||
|  Assets      ||             |  Assets      ||             | ||||||
| -------------++------------ | -------------++------------ | ||||||
|  assets      ||        2 A  |  assets      ||          5  | ||||||
|    foobar    ||        2 A  |    cash      ||          5  | ||||||
|      current ||        2 A  |  | ||||||
| -------------++------------ |  | ||||||
|              ||        2 A  |  | ||||||
| =============++============ | =============++============ | ||||||
|  Liabilities ||             |  Liabilities ||             | ||||||
| -------------++------------ | -------------++------------ | ||||||
| -------------++------------ |  | ||||||
|              ||             |  | ||||||
| =============++============ |  | ||||||
|  Net:        ||        2 A  |  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user