Closed (fixed)
Project:
Storm
Version:
6.x-1.24
Component:
Storm Invoice
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2009 at 16:29 UTC
Updated:
19 Jun 2011 at 20:10 UTC
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
Comments
Comment #1
Magnity commentedHi Petiar,
Have you had this problem on any previous versions, or on the current development version?
Comment #2
petiar commentedHi Magnity,
I did not use any previous version - 6.x-1.24 is the one I have installed since I discovered Storm.
Comment #3
Magnity commentedHi Petiar,
Any chance of trying the -dev version? You can upgrade your existing installation to it.
@all: Anyone else having this problem?
Comment #4
Magnity commentedNeeds more info as per #3.
Comment #5
Magnity commentedClosing as no response - please reopen if more information is available.
Comment #6
kakor commentedI 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.
Comment #7
juliangb commentedThanks for the report @kakor, hopefully it will help someone else.
Comment #9
orjantorang commentedthis solved my problem:
storminvoice.theme.inc line 699 + 482
//$myorg = node_load(variable_get('storm_organization_nid', 0));
$myorg = node_load($node->organization_nid);