beancount / ledger2beancount

Ledger to Beancount text-based converter
GNU General Public License v3.0
84 stars 14 forks source link

Add support for `default` account #270

Open tbm opened 3 months ago

tbm commented 3 months ago

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 commented 3 months ago

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.