Skip to content

Add @ entries if ledger can't do implicit conversion #22

Description

@tbm

Converting this to ledger works fine:

2020-10-23 * "Test"
    Assets:Property                   0.1 FOO {300.00 EUR}
    Assets:Property                   0.2 BAR {200.00 EUR}
    Equity:Opening-Balance

But if we change it to

2020-10-23 * "Test"
    Assets:Property                   0.1 FOO {300.00 EUR, 2020-10-22}
    Assets:Property                   0.2 BAR {200.00 EUR}
    Equity:Opening-Balance

we get:

0.2 BAR {200.000 EUR}
         -70.000 EUR
0.1 FOO {300.000 EUR} [20-Oct-22]
Amount to balance against:
0.2 BAR {200.000 EUR}
0.1 FOO {300.000 EUR} [20-Oct-22]
Error: Transaction does not balance

This is because the date make it not just EUR. (I wonder if this is a bug in ledger or not.)

I need to think about the different scenarios but it would be good to deal with this somehow.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions