<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>401144</bug_id>
          
          <creation_ts>2018-11-17 19:36:16 +0000</creation_ts>
          <short_desc>Price in exponential format is not interpreted correctly</short_desc>
          <delta_ts>2018-11-18 08:59:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>importer</component>
          <version>5.0.2</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Thomas Baumgart">tbaumgart</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          <cc>idest</cc>
          
          <cf_commitlink>https://commits.kde.org/kmymoney/e3ad0e31ff48336e605263fdbef5e40c0f4550d7</cf_commitlink>
          <cf_versionfixedin>5.0.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1817587</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2018-11-17 19:36:16 +0000</bug_when>
    <thetext>SUMMARY

In case an exchange rate is presented as 5.9921e-5 on the price info website it is incorrectly interpreted as 599215.

STEPS TO REPRODUCE
1. Create price for EUR/IDR
2. Run online update of price
3. Observer console output

OBSERVED RESULT

Output on console:
kmymoney_webpricequote: Identifier &quot;IDR/EUR&quot;
kmymoney_webpricequote: Price &quot;599215&quot;
kmymoney_webpricequote: Date &quot;17/11/2018&quot;


EXPECTED RESULT

Output on console:
kmymoney_webpricequote: Identifier &quot;IDR/EUR&quot;
kmymoney_webpricequote: Price &quot;599215&quot;
kmymoney_webpricequote: Date &quot;17/11/2018&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1817616</commentid>
    <comment_count>1</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2018-11-17 21:24:05 +0000</bug_when>
    <thetext>Is that a typo in the Expected Price?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818179</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2018-11-18 08:26:43 +0000</bug_when>
    <thetext>Git commit e3ad0e31ff48336e605263fdbef5e40c0f4550d7 by Thomas Baumgart.
Committed on 18/11/2018 at 07:35.
Pushed by tbaumgart into branch &apos;5.0&apos;.

Support price import in exponential format
FIXED-IN: 5.0.3

M  +13   -2    kmymoney/converter/webpricequote.cpp

https://commits.kde.org/kmymoney/e3ad0e31ff48336e605263fdbef5e40c0f4550d7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1818188</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2018-11-18 08:59:34 +0000</bug_when>
    <thetext>(In reply to Jack from comment #1)
&gt; Is that a typo in the Expected Price?

The old copy/paste error struck again :)

It should read

kmymoney_webpricequote: Price &quot;5.9921e-5&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>