After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770181 - gnc-fq-dump incorrectly says "quote cannot be used by gnucash" when only missing date
gnc-fq-dump incorrectly says "quote cannot be used by gnucash" when only miss...
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Currency and Commodity
2.6.13
Other All
: Normal minor
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2016-08-21 01:02 UTC by Chris Good
Modified: 2018-06-29 23:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris Good 2016-08-21 01:02:05 UTC
gnc-fq-dump incorrectly says "quote cannot be used by gnucash" when missing date but gnc-fq-helper uses the current date when no date is supplied by Finance::Quote so GnuCash CAN use these quotes so long as there are no other problems.

C:\Program Files (x86)\gnucash\bin > perl gnc-fq-dump -v australia ANZ

Finance::Quote fields Gnucash uses:
    symbol: ANZ                  <=== required
      date: ** missing **        <=== required
  currency: AUD                  <=== required
      last: 26.680               <=\
       nav:                      <=== one of these
     price: 26.680               <=/
  timezone:                      <=== optional

** This stock quote cannot be used by gnucash!!

All fields returned by Finance::Quote for stock ANZ

stock           field  value
-----           -----  -----
ANZ               bid: -0.15%
ANZ          currency: AUD
ANZ          exchange: Australian Stock Exchange
ANZ              high: 26.720
ANZ              last: 26.680
ANZ               low: 26.750
ANZ            method: asx
ANZ             offer: 26.550
ANZ              open: 26.680
ANZ          p_change: -0.15
ANZ             price: 26.680
ANZ           success: 1
ANZ            symbol: ANZ
ANZ            volume: 26.400
Comment 1 John Ralls 2016-09-11 23:34:19 UTC
I changed it to say:

Finance::Quote fields Gnucash uses:
    symbol: ANZ                  <=== required
      date: ** missing **        <=== recommended
  currency: AUD                  <=== required
      last: 26.760               <=\
       nav:                      <=== one of these
     price: 26.760               <=/
  timezone:                      <=== optional

** This quote will have today's date, which might be incorrect.
   GnuCash will use it, but you might prefer that it doesn't.

My reasoning is that if one retrieves a quote at the weekend it would be a Friday quote but GnuCash would label it as Saturday or Sunday. Some users might not like that even though it shouldn't make any difference in the real world.

This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.
Comment 2 John Ralls 2018-06-29 23:50:42 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=770181. Please update any external references or bookmarks.