Download & Extend

Currency not displayed/displayed incorrectly on the invoice

Project:Storm
Version:6.x-1.24
Component:Storm Invoice
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#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

Status:active» postponed (maintainer needs more info)

Needs more info as per #3.

#5

Status:postponed (maintainer needs more info)» closed (fixed)

Closing as no response - please reopen if more information is available.

#6

Status:closed (fixed)» active

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

Status:active» fixed

Thanks for the report @kakor, hopefully it will help someone else.

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#9

this solved my problem:

storminvoice.theme.inc line 699 + 482

//$myorg = node_load(variable_get('storm_organization_nid', 0));
$myorg = node_load($node->organization_nid);