-
Notifications
You must be signed in to change notification settings - Fork 262
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
Add ability to record expenses in different currencies #512
Comments
+1 to this feature. Last year we used 9 currencies on our august
holidays, this year the same.
Having an automatic [xe.com] conversion is one thing for debt balance,
but keeping both amounts is useful to input & check bills.
Nice to follow you for the last two months, guys ^
Charles+++
Le 25/11/2019 à 11:22, Arthur Guo a écrit :
…
Consider the use case when a group of friends travels to a different
country. They will likely have some expenses in their home currency
(airplane, uber to airport, etc) as well as some expenses in the
foreign currency (food, entertainment).
This would be a really useful feature to add!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#512?email_source=notifications&email_token=AK2KC3COK4QR45EEC3VN5Q3QVOROBA5CNFSM4JRGT6H2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H3YOHOQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AK2KC3EU2OMLYOWYPXNIJDDQVOROBANCNFSM4JRGT6HQ>.
|
Hi, thanks for taking the time to open an issue for this. I've been thinking a bit and… I'm not sure we want this. It seems at a first glance out of scope for IHM, and will probably create more problems than it would solve : how should we handle the conversion rate ? In which currency should we compute the balances? One simple way to solve this would be to have a default currency per project, and then have a tool to do the conversion when we enter the new bill, so that it converts from one currency to another one. Then everything is stored in one currency. We could detect the currency quite easily using their text reprentation (EUR, USD, etc), which would make this an advanced use case. This approach seems a bit overcomplicated for the scope of this very small project : it will tie IHM to another external lib / API, and it means we'll need to maintain it in the long term. For the record, here are a few libs that might help :
If somebody want to take it, I'll be happy to review the code for this. Also, feedback from other users / dev is welcome :-) |
If nobody else has taken this up, I am just beginning to contribute and would like to try and take this on. |
@ndkoch feel free to hack something up! As I said, I'm not sure how this should be done and depending on how it's done, it'll potentially not be merged if it makes things too complicated. Not to discourage you, so if you feel like taking it, go ahead :-) |
Another way you could do this is to :
For V1, it would probably be enough just to run the settlement algorithm on every currency, without tying into some currency conversion API. |
just finished up what I hope can close this issue if you have some time to take a look. thanks |
@almet @ndkoch TrickyTripper has this feature, but the conversion rate has to be input manually. It would be useful to have it integrated with online conversion like Currecncy does, it fetches rates online and if no connection is possible it uses the last fetched rate. |
What we usually do is what @35609902357 said, we keep track of the daily currency rate via a cronjob that fetches it everyday and then we use the rate of the day to convert everything to USD and then we display the total in the user currency. However when I use I hate money, we pick a currency and then enter everything in the same currency. |
Thanks @ndkoch for your initial work on this. @dark0dave took it through the end. |
Now each project can have a currency, default to None. Each bill can use a different currency, and a conversion to project default currency is done on settle. Fix spiral-project#512
Consider the use case when a group of friends travels to a different country. They will likely have some expenses in their home currency (airplane, uber to airport, etc) as well as some expenses in the foreign currency (food, entertainment).
This would be a really useful feature to add!
The text was updated successfully, but these errors were encountered: