;doc:add: edits
This commit is contained in:
parent
e434c0101e
commit
1e9bd3c2c9
@ -68,11 +68,10 @@ You can also add a new balance assertion, following the amount as in journal for
|
|||||||
The new transaction's date, and the new posting's posting date if any (entered in a comment following the amount),
|
The new transaction's date, and the new posting's posting date if any (entered in a comment following the amount),
|
||||||
will influence assertion checking.
|
will influence assertion checking.
|
||||||
|
|
||||||
You can use `-I`/`--ignore-assertions` to disable this assertion checking.
|
You can use `-I`/`--ignore-assertions` to disable assertion checking temporarily.
|
||||||
|
|
||||||
## add and balance assignments
|
## add and balance assignments
|
||||||
|
|
||||||
If you try to add a new posting which is dated earlier than a balance assignment in that account and commodity, it will be rejected.
|
When `add` runs, it sees the journal with all balance assignments already processed and converted to assertions.
|
||||||
It's because by the time `add` runs, all balance assignments have been processed and have become assertions.
|
So if you add a new posting which is dated earlier than a balance assignment, it will break the assertion and be rejected.
|
||||||
So if you need to do this, add the `-I` flag to disable assertions temporarily.
|
If you need to do this, use `hledger add -I`.
|
||||||
([#2406](https://github.com/simonmichael/hledger/issues/2406)).
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user