Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for default account #270

Open
tbm opened this issue Jul 4, 2024 · 1 comment
Open

Add support for default account #270

tbm opened this issue Jul 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tbm
Copy link
Collaborator

tbm commented Jul 4, 2024

In ledger, the default account can be used in the same way as bucket:

account Assets:Cash
    default

2024-07-04 * Foo
    Expenses:Food         10.00 EUR

Result:

          -10.00 EUR  Assets:Cash
           10.00 EUR  Expenses:Food
@tbm tbm added the enhancement New feature or request label Jul 4, 2024
@tbm
Copy link
Collaborator Author

tbm commented Jul 4, 2024

https://ledger-cli.org/doc/ledger3.html#Command-Directives

The default directive specifies that this account should be used as the “balancing account” for any future transactions that contain only a single posting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant