Skip Menu |

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 55704
Status: new
Priority: 0/
Queue: Finance-Quote

People
Owner: Nobody in particular
Requestors: matze [...] braunis.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Finanzpartner module and big numbers
Date: Fri, 19 Mar 2010 09:34:07 +0100
To: bug-Finance-Quote [...] rt.cpan.org
From: Matthias Braun <matze [...] braunis.de>
The Finanzpartner module uses commas when showing big numbers (example 8,020.22). Gnucash can't parse these numbers. I'm not 100% sure wether this should be considered a bug in Finance:Quote or rather a bug in gnucash for not parsing the number. Anyway I used the following patch: --- a/lib/Finance/Quote/Finanzpartner.pm +++ b/lib/Finance/Quote/Finanzpartner.pm @@ -41,7 +41,8 @@ sub trim # Convert number separators to US values sub convert_price { $_ = shift; - tr/.,/,./ ; + s/\.//g; + tr/,/./; return $_; }