Ledger shows only the effective date with --effective, but not vice versa. print is supposed to be information-preserving so this seems better. This also fixes the web entries view.
		
			
				
	
	
		
			28 lines
		
	
	
		
			425 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			425 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # print shows both dates. The second's year defaults to the first's.
 | |
| bin/hledger -f - print --effective
 | |
| <<<
 | |
| 2009/1/1=1/2 x
 | |
|   a  1
 | |
|   b
 | |
| >>>
 | |
| 2009/01/01=2009/01/02 x
 | |
|     a             1
 | |
|     b            -1
 | |
| 
 | |
| >>>2
 | |
| >>>= 0
 | |
| 
 | |
| # Effective date of 29 Feb on leap year should be valid
 | |
| bin/hledger -f - print --effective
 | |
| <<<
 | |
| 2001/2/27=2000/2/29 x
 | |
|   a  1
 | |
|   b
 | |
| >>>
 | |
| 2001/02/27=2000/02/29 x
 | |
|     a             1
 | |
|     b            -1
 | |
| 
 | |
| >>>2
 | |
| >>>= 0
 |