;csv: doc: try to clarify status of unnumbered amount rules (#1226)
This commit is contained in:
		
							parent
							
								
									3693fd4eb6
								
							
						
					
					
						commit
						dd3db5a4e2
					
				@ -430,11 +430,14 @@ a default account name will be chosen (like "expenses:unknown" or "income:unknow
 | 
				
			|||||||
If the CSV uses separate fields for debit and credit amounts, you can
 | 
					If the CSV uses separate fields for debit and credit amounts, you can
 | 
				
			||||||
use `amountN-in` and `amountN-out` instead.
 | 
					use `amountN-in` and `amountN-out` instead.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Also, for compatibility with hledger <1.17:
 | 
					An unnumbered form of these rules is also supported:
 | 
				
			||||||
`amount` or `amount-in`/`amount-out` with no number sets the amount
 | 
					`amount` or `amount-in`/`amount-out` sets the amount for both posting 1
 | 
				
			||||||
for postings 1 and 2. For posting 2 the amount is negated, and
 | 
					and (negated, and converted if there's a [transaction price](journal.html#transaction-prices))
 | 
				
			||||||
converted to cost if there's a [transaction price](journal.html#transaction-prices).
 | 
					posting 2.
 | 
				
			||||||
But if any numbered `amountN`/`amountN-in`/`amountN-out` fields are present, `amount` is ignored.
 | 
					This is for compatibility with pre-hledger-1.17 csv rules files,
 | 
				
			||||||
 | 
					and can still be convenient for simple cases.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					If any numbered `amountN`/`amountN-in`/`amountN-out` fields are present, `amount` is ignored.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### currency
 | 
					#### currency
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user