forked from ledger/ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore expr context after calc, ledger#2330 ledger#2343
Part of the expr_t::compile() process is to store the current scope, but In post_t::add_to_value that scope is temporary and on the stack. Restore the original context after that process is complete.
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
2024/01/01 * Test1 | ||
Expenses:Test $1.00 | ||
Assets:Checking | ||
2024/01/01 * Test2 | ||
Expenses:Test $1.00 | ||
Assets:Checking | ||
|
||
test bal --group-by 'payee' --invert ^Expenses: | ||
Test1 | ||
$-1.00 Expenses:Test | ||
|
||
Test2 | ||
$-1.00 Expenses:Test | ||
end test |