* cli: fix bug in pivot for postings without tag
Without this fix for postings without tag query checked effective
account which is always empty text ("").
* rewrite: inherit dates, change application order
For budgeting it is important to inherit actual date of posting if it
differs from date of transaction. These dates will be added
as a separate line of comment.
More natural order of rewrites is when result of first defined one is
available for all next rewrites.
* rewrite: factor out Hledger.Data.AutoTransaction
* rewrite: add diff output
With this option you can modify your original files without loosing
inter-transaction comments etc. I.e. you can run:
hledger-rewrite --diff Agency \
--add-posting 'Expenses:Taxes *0.17' \
| patch
As result multiple files should be updated.
Also it is nice to review your changes using colordiff instead of
patch.
* lib: track source lines range for journal
* doc: auto entries and diff output for rewrite
|
||
|---|---|---|
| .. | ||
| Account.hs | ||
| AccountName.hs | ||
| Amount.hs | ||
| AutoTransaction.hs | ||
| Commodity.hs | ||
| Dates.hs | ||
| Journal.hs | ||
| Ledger.hs | ||
| Period.hs | ||
| Posting.hs | ||
| RawOptions.hs | ||
| StringFormat.hs | ||
| Timeclock.hs | ||
| Transaction.hs | ||
| Types.hs | ||