Currency not displayed/displayed incorrectly on the invoice
petiar - October 18, 2009 - 16:29
| Project: | Storm |
| Version: | 6.x-1.24 |
| Component: | Storm Invoice |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi everybody,
I was about to issue two invoices (for separate projects and organisations). However, instead of currency (which should be Euro - EUR) there is an "Array" string on one invoice and blank area on the another. I pretty much went through all tasks, invoices, organisations, timetrackings, etc. and I've got Euro set everywhere where it is possible to set a currency.
Any idea what else should I check?
Thanks a lot.
Petiar.
You can see this in action here: http://screencast.com/t/h3E11nPWSrJL

#1
Hi Petiar,
Have you had this problem on any previous versions, or on the current development version?
#2
Hi Magnity,
I did not use any previous version - 6.x-1.24 is the one I have installed since I discovered Storm.
#3
Hi Petiar,
Any chance of trying the -dev version? You can upgrade your existing installation to it.
@all: Anyone else having this problem?
#4
Needs more info as per #3.
#5
Closing as no response - please reopen if more information is available.
#6
I don't know if this is the same problem, but anyway... I have set up my system to use swedish currency, but somewhere along the line I noticed that the pdf generation links (print pdf and email pdf) all pointed to the english version. (http://example.com/storm/invoice/report/9/pdf/en instead of http://example.com/storm/invoice/report/9/pdf/sv)
The problem, in my case, has to do with the i18n settings. If you edit the Invoice content type, you can enable language settings for invoices under Workflow settings. As per default, the setting is off and that seems to make all new invoices language neutral instead of english or swedish (or what have you). I haven't found a default setting.
However, if I enable this setting and manually choose swedish when I create the invoice, the pdf links are handled correctly. I have made my own pdf template and use setlocale(LC_MONETARY, 'sv_SE'); and money_format() in most places, so I'm not sure if these "errors" are related. But it might give someone a clue.
#7
Thanks for the report @kakor, hopefully it will help someone else.
#8
Automatically closed -- issue fixed for 2 weeks with no activity.