Skip to content

add support for per-account booking method override #268

Open
@zacchiro

Description

Beancount has support for per-account booking methods, with the following syntax:

2016-05-01 open Assets:Vanguard:RGAGX  "AVERAGE"

It would be nice to support for this in ledger2beancount.

Currently, the only workaround possible is quite awkward, as one has to disable automatic declarations for all accounts, and replicate manually all open directives with l2b blocks.

How to support it properly is debatable. My take: require a dedicated account metadata field (overridable with an option or otherwise) and interpret it as the booking method, e.g. (in ledger syntax):

account Assets:Vanguard:RGAGX
    ; booking-method: AVERAGE

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions