beancount / ledger2beancount

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

Detection of account name is not correct #185

Closed thdox closed 4 years ago

thdox commented 4 years ago

With this input file

2018/03/26 * John Doe
    Actif:Remboursement:John  ; [=2017/10/04] Abonnement Théâtre
    Actif:Courant:BnpCc                      85,00 €

I get

;----------------------------------------------------------------------
; ledger2beancount conversion notes:
;
;   - Account Actif:Remboursement:John Abonnement Théâtre renamed to Assets:Remboursement:John-Abonnement-Théâtre

I know that aux_date is to be ignored, and I would have expected that the below account is correctly detected.

Actif:Remboursement:John

tbm commented 4 years ago

Thanks, Thierry! That's definitely a bug.

tbm commented 4 years ago

Some parts of ledger2beancount are a bit ugly. This is one of them. ;)

I have a fix. I'll test some more tomorrow and commit. Thanks again.