>>>>> Qwertyu <[email protected]> writes: > Maybe a flag like '--silent-adjustment' is needed?
There is a --revalued flag to explicitly turn them on, but I agree there should be a --no-revalued flag to do the opposite. > BTW, I don't really understand how the adjustments work. See the attached > (minimal example) files. The difference between the files is only the > price. Sometimes adjustments are shown and sometime not. Why? (See the > comments in the attached ledger files.) Note, if there is no text between > 'test....' and 'end test', then ledger produced no output. <Adjustments> are used to show that the price of a commodity changed between two postings, affecting the running total. It's intended (along with <Rounding> posts) to ensure that the total from a balance report exactly matches the total from the same register report. > BTW 2, for testing an option --test would be good, which runs the 'test...' > sections in the give ledger file and compares the output to what is given > between 'test..' and 'end test'. You could then easily collect many ledger > files with unit tests, to test against regressions. (I do that with a shell > script, which you can find attached. Use at your own risk.) Is this what the current RegressTests driver does? > Also an option '--fill-test' would be useful to fill the test sections if > they are empty. (This is also done by the attached shell script.) That sounds quite useful! > All the best and thanks for the great work on ledger. Thanks much, John
