Review Storm's handling of currencies

Magnity - July 14, 2009 - 08:51
Project:Storm
Version:6.x-1.x-dev
Component:Miscellaneous
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

#301301: Timetracker -> Invoice has brought to light that it would be useful to enforce a single currency per Organization and all activities with that Organization -> Therefore meaning that all invoices with that organization would be of a single currency, and in particular, any one invoice would not try to serve multiple currencies.

The plan is to remove all price currency fields except for within the Organization (data from the fields in other node types will be lost).

Please post a comment here if this will affect your installation.

#1

Magnity - July 14, 2009 - 10:07

In fact - does anybody use multiple currencies in their installation at all?

Or perhaps the currency could simply be a global setting which controlled how a unit is displayed?

#2

deggertsen - July 14, 2009 - 17:17

Personally I like the ability to set each organization to a different currency if needed. Currently I only use one currency, however I anticipate working with organizations in different countries in the future which would require me to use different currencies.

That said however, it would not be a big deal if currency was set to be a global setting instead... If that would make development a lot easier I think you should do it.

#3

psy - July 28, 2009 - 01:02

Operating out in one of the colonies (Australia), makes me ask how do I extend the currencies options as the Aussie Peso does not show in the list.

Getting back on topic, I would go for an admin option "Use Global Single Currency" or "Use Single Currency for Each organisation".

Excellent modules BTW. Excellent.

#4

Magnity - July 28, 2009 - 02:18

To answer your first point: Goto /storm/attributes/add. Select the domain 'Currency'. The key is the currency short code, and the value the name in words.

Re the admin options - this would defeat the point of the simplification that this is meant to bring! Lets see if anyone else posts anyway though.

#5

homoludens - July 28, 2009 - 10:33

Truth is that almost every organization (for-profit or non-profit) outside of US or EU is constantly working with multiple currencies.
I was reluctant to say anything on this issue, because just putting currency field everywhere is not solution, and I still don't have complete idea of some. What I'm guessing is that I doubt that anyone is, currently, using multiple currencies in storm, and I will try to explain why.

Important things are: I believe that invoice has to be in the same currency (it is probable illegal to be with multiple currencies) , but tying organization to only one currency would limit storm too much.

Examples:
For-profit organization: if it is doing any kind of import/export or for storm more importantly outsourcing, they would make invoice in one currency, but would pay tax and other expanses in another currency.

Non-profit organization: is receiving donations in few different currencies, but can spend them only as their domestic currency.

And every time someone exchange currency they need to enter current exchange rate.

As I said, I don't have solution right now, but I'm currently writing new storm module for non-profit budget tracking, where this issue is very important, so I'm hoping I will find solution in next few weeks. It is going slowly because I need to, constantly, check with different organizations what would they need, so that module would cover more use cases.

#6

Magnity - July 28, 2009 - 13:30

Looks like this could be a bit more complex than I thought - so perhaps this simplification is a no goer.

I'd really like to see your budget tracking module when its done!

#7

homoludens - July 28, 2009 - 16:11

currency part: Sadly, it isn't simple. I hope that I will soon have more to say about that part. That info is connected with:

budget module part: Some preview part of it is already done - part that covers simplest use case, but it is covering around 80% of uses that I can see.
And I would put it here, but I needed it fast, so I have made budget module based on tasks and hacked it together with storm_expense module, so until I make separate module (what could happen during next week) it is not wise to give it to other people.

But If you (and others) really want to have early preview, I am having all mine storm module with all mine changes on github:
http://github.com/homoludens/STORM/tree/master - Please, do use this code ONLY on separate drupal install - that is totally independent from something useful, especially keep it away from other storm install! There, I said it. But it is not that bad, it is mine test installation.

I will try to put it on some public server that I can give you access.

On the other part, I will try to find out, what business people need from currency settings - that would be little harder to find out cause I mostly have contact with non profits that can find storm useful.

#8

Magnity - September 14, 2009 - 09:22
Title:Remove Price Currency field from all node types except Organisation» Review Storm's handling of currencies

Reading through this issue and others, it seems that:
a) Restricting the use of currencies will hinder a lot of the uses of Storm
b) Currently (at least programmatically), it is confusing which currencies are where.

Therefore, this issue can be a review of how Storm handles currencies to see if there can be a better solution.

Marking #570968: Currency in Expense as a duplicate of this issue now - that can be handled as part of this.

 
 

Drupal is a registered trademark of Dries Buytaert.