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 343727 - gncCustomer does not have a QOF param for currency
gncCustomer does not have a QOF param for currency
Status: RESOLVED INCOMPLETE
Product: GnuCash
Classification: Other
Component: Business
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
Depends on:
Blocks:
 
 
Reported: 2006-06-02 22:39 UTC by Georgi Mirchev
Modified: 2018-06-29 21:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Added currency param of type QOF_STRING (2.24 KB, patch)
2006-06-02 22:40 UTC, Georgi Mirchev
needs-work Details | Review

Description Georgi Mirchev 2006-06-02 22:39:40 UTC
Since I suspect that gncCustomer cannot take any other commodity but currency, the QOF param could be of type QOF_STRING.
Comment 1 Georgi Mirchev 2006-06-02 22:40:23 UTC
Created attachment 66677 [details] [review]
Added currency param of type QOF_STRING
Comment 2 Derek Atkins 2006-07-16 04:53:49 UTC
Hi.

I'm not convinced that the currency should return a string, instead of, say, a Currency object.  Why do you think it should be a string and not a currency object?
Comment 3 Georgi Mirchev 2006-07-17 09:01:25 UTC
The qofCustomerGetCurrency() and qofCustomerSetCurrency() are used from qof only. There are other functions (something like gncCustomerGetCurrency) that return the gncCommodity object.
Also AFAIR the gncCommodity object has serious issues with qof.
Comment 4 Derek Atkins 2006-07-17 17:56:43 UTC
How about a compromise.  Let's rename it from CUSTOMER_CURRENCY to _CURRENCYSTR or _CURRENCY_STRING or _CURRENCYY_NAME -- something that really tells a programmer that it's the name of the currency, a string, and not the gnc_commodity object.

Would that be acceptable to you?
Comment 5 Georgi Mirchev 2006-07-17 19:43:12 UTC
Sure, it seems that CUSTOMER_CURRENCY_STRING will most fully communicate that it is a string :-)
Comment 6 Rolf Leggewie 2008-06-20 15:44:20 UTC
what is the status here?
Comment 7 Derek Atkins 2008-06-20 15:53:04 UTC
none.  nothing has been applied.  I think that I was waiting for a new patch.
Comment 8 Christian Stimming 2008-10-26 21:20:49 UTC
If I understand correctly Derek says he is waiting for a patch where the
identifier CUSTOMER_CURRENCY is renamed into CUSTOMER_CURRENCY_STRING. Is that
everything? Then I could apply this as well.

Comment 9 Derek Atkins 2008-10-27 11:36:03 UTC
Christian: Correct.
Comment 10 Phil Longstaff 2009-07-06 21:44:41 UTC
Why do you need the currency as a string?  I agree that the qof interface to gncCustomer does not return the currency, but I think the best solution is for gncCustomer to return a currency, and you can then get the name from the currency.
Comment 11 Tobias Mueller 2010-02-20 12:51:43 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!
Comment 12 John Ralls 2018-06-29 21:06:49 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=343727. Please update any external references or bookmarks.