I installed the module and then when I'm clicking on create invoice, I'm getting this warning message above the form. I'm not a coder, please guide me to resolve this issue.

Warning: explode(): Empty delimiter in _invoice_money_format() (line 149 of D:\xampp\htdocs\bpub1\sites\all\modules\invoice\invoice_helpers.inc).
Warning: implode(): Invalid arguments passed in _invoice_money_format() (line 162 of D:\xampp\htdocs\bpub1\sites\all\modules\invoice\invoice_helpers.inc).
Warning: explode(): Empty delimiter in _invoice_money_format() (line 149 of D:\xampp\htdocs\bpub1\sites\all\modules\invoice\invoice_helpers.inc).
Warning: implode(): Invalid arguments passed in _invoice_money_format() (line 162 of D:\xampp\htdocs\bpub1\sites\all\modules\invoice\invoice_helpers.inc).

Comments

casismary’s picture

Hello,

The reason why it doesn't work is because your system doesn't have a strfmon capabilities. (money_format() is undefined in Windows)

I have the same issue. At the moment, I'm using XAMPP on a windows machine.

In invoice_helpers.inc, just after the assignment :

$locale = localeconv();

I fixed it by putting directly the value :

$locale['mon_decimal_point'] = ',';

This is a quick fix :(

thomasaaron’s picture

I swear, I have no idea how I'd ever complete my Drupal project if it weren't for people like you, Casism. Thanks for figuring that out.