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

Fixed commodity conversion feature in CSV format #108

Merged
merged 3 commits into from
Feb 2, 2024
Merged

Conversation

xkikeg
Copy link
Owner

@xkikeg xkikeg commented Feb 2, 2024

Before this CL, these CSV+rewrite config are imported in a wrong way.

"2020/07/29";"普通";"";"USD";"外貨普通預金(ユーロ)へ振替";"";"2353.40";"29338.38";"1.1767";"246918";""
  - account: Assets:Wire
    matcher:
      payee: 外貨普通預金(ユーロ)へ振替
    conversion:
      commodity: EUR
2020/07/29 * 外貨普通預金(ユーロ)へ振替
    Assets:Okane Bank                       -2353.40 USD = 29338.38 USD
    Assets:Wire                              2353.40 EUR @ 1.1767 USD
    ; WRONG!! this needs to be 2000 EUR

This PR fixes it to convert transferred amount with the exchange rate.

2020/07/29 * 外貨普通預金(ユーロ)へ振替
    Assets:Okane Bank                       -2353.40 USD = 29338.38 USD
    Assets:Wire                              2353.40 EUR @ 1.1767 USD

It used to show totally wrong value.
Past this commit, it'll compute the right amount tranferred with
the right commodity conversion.
@xkikeg xkikeg merged commit bd94acd into main Feb 2, 2024
1 check passed
@xkikeg xkikeg deleted the csv_separator branch February 2, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant