Re: [GNC] Adding a new currency

2022-07-08 Thread Geert Janssens
Op vrijdag 8 juli 2022 14:52:58 CEST schreef Esteban Maringolo:
> But is the list of currencies hardcoded? Isn't it in some table?
> 
It's in an xml file. If you self-build, you could add your own currencies in 
that file 
and have extra currencies. A patch to add these extra currencies will only be 
accepted in the gnucash code base though if the extra currencies are ISO-4217.

To have anything in vanilla gnucash, the user interface and the data store 
format 
have to be changed in order to be able to clearly distinguish ISO currencies 
from 
custom ones. That's quite a bit of work :)

Regards,

Geert
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Adding a new currency

2022-07-08 Thread Derek Atkins
Hi,

Technically, the list is hard-coded into the application at compile-time,
but it is built from an XML file that contains the list of currencies. 
That XML is converted to C code that "loads" the list of currencies at
runtime.

So, yes, technically you could add your own custom currency to your
custom-built version of GnuCash.  However, you will need to maintain that
"forever".  Your data file will never work on a "standard" version of
GnuCash (without your currency change).  And any update will require you
to rebuild the application with your change.

Enjoy!

-derek

PS: Someone did agree on IRC (in principle) to pay me a certain fee to
implement this feature, saying they'd be back in a week (technically they
said 10 days) to confirm.  But they never returned to confirm.  *shrug*

On Fri, July 8, 2022 8:52 am, Esteban Maringolo wrote:
> But is the list of currencies hardcoded? Isn't it in some table?
>
> As for cryptocurrencies, there was XBT for Bitcoin, but nothing else.
>
> Regards,
>
> Esteban A. Maringolo
>
> On Fri, Jul 8, 2022 at 9:43 AM Geert Janssens
>  wrote:
>>
>> Op vrijdag 8 juli 2022 10:18:51 CEST schreef Peter West:
>> > So cryptocurrencies will never be supported currencies, because
>> > cryptocurrencies will never be part of ISO-4217.
>> >
>>
>> At some point I proposed to add code to allow non-ISO-4217 currencies.
>> While not formally
>> correct this could be helpful for simple personal accounting. Such
>> alternate currency group
>> could also have been used to manage crypto currencies.
>>
>> Unfortunately I don't have time left to implement this and I don't think
>> any of the other
>> active devs has it anywhere on their priority list.
>>
>> So "never" ? Depends. For to to have any chance though it will require
>> someone to step up
>> and implement this in a way that fits the gnucash design and concepts.
>>
>> Regards,
>>
>> Geert
>>
>> > —
>> > Peter West
>> > p...@pbw.id.au
>> > “And the rain fell, and the floods came, and the winds blew and beat
>> against
>> > that house, and it fell, and great was the fall of it.”
>> > > On 8 Jul 2022, at 2:51 am, john  wrote:
>> > >> On Jul 7, 2022, at 9:23 AM, Esteban Maringolo
>> 
>> > >> wrote:
>> > >>
>> > >> Hi,
>> > >>
>> > >> Is it possible to manually add a new currency to the list of
>> currencies?
>> > >>
>> > >> I will take care of updating the exchange rate.
>> > >
>> > > No. Currency in GnuCash is defined as "currencies recognized by
>> ISO-4217".
>> > > Everything else is a commodity.
>> > >
>> > > Regards,
>> > > John Ralls
>> > > ___
>> > > gnucash-user mailing list
>> > > gnucash-user@gnucash.org
>> > > To update your subscription preferences or to unsubscribe:
>> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> > > If you are using Nabble or Gmane, please see
>> > > https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -
>> > > Please remember to CC this list on all your replies.
>> > > You can do this by using Reply-To-List or Reply-All.
>> >
>> > ___
>> > gnucash-user mailing list
>> > gnucash-user@gnucash.org
>> > To update your subscription preferences or to unsubscribe:
>> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> > If you are using Nabble or Gmane, please see
>> > https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -
>> > Please remember to CC this list on all your replies.
>> > You can do this by using Reply-To-List or Reply-All.
>>
>>
>> ___
>> gnucash-user mailing list
>> gnucash-user@gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> If you are using Nabble or Gmane, please see
>> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on al

Re: [GNC] Adding a new currency

2022-07-08 Thread Esteban Maringolo
But is the list of currencies hardcoded? Isn't it in some table?

As for cryptocurrencies, there was XBT for Bitcoin, but nothing else.

Regards,

Esteban A. Maringolo

On Fri, Jul 8, 2022 at 9:43 AM Geert Janssens
 wrote:
>
> Op vrijdag 8 juli 2022 10:18:51 CEST schreef Peter West:
> > So cryptocurrencies will never be supported currencies, because
> > cryptocurrencies will never be part of ISO-4217.
> >
>
> At some point I proposed to add code to allow non-ISO-4217 currencies. While 
> not formally
> correct this could be helpful for simple personal accounting. Such alternate 
> currency group
> could also have been used to manage crypto currencies.
>
> Unfortunately I don't have time left to implement this and I don't think any 
> of the other
> active devs has it anywhere on their priority list.
>
> So "never" ? Depends. For to to have any chance though it will require 
> someone to step up
> and implement this in a way that fits the gnucash design and concepts.
>
> Regards,
>
> Geert
>
> > —
> > Peter West
> > p...@pbw.id.au
> > “And the rain fell, and the floods came, and the winds blew and beat against
> > that house, and it fell, and great was the fall of it.”
> > > On 8 Jul 2022, at 2:51 am, john  wrote:
> > >> On Jul 7, 2022, at 9:23 AM, Esteban Maringolo 
> > >> wrote:
> > >>
> > >> Hi,
> > >>
> > >> Is it possible to manually add a new currency to the list of currencies?
> > >>
> > >> I will take care of updating the exchange rate.
> > >
> > > No. Currency in GnuCash is defined as "currencies recognized by ISO-4217".
> > > Everything else is a commodity.
> > >
> > > Regards,
> > > John Ralls
> > > ___
> > > gnucash-user mailing list
> > > gnucash-user@gnucash.org
> > > To update your subscription preferences or to unsubscribe:
> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > > If you are using Nabble or Gmane, please see
> > > https://wiki.gnucash.org/wiki/Mailing_Lists for more information. -
> > > Please remember to CC this list on all your replies.
> > > You can do this by using Reply-To-List or Reply-All.
> >
> > ___
> > gnucash-user mailing list
> > gnucash-user@gnucash.org
> > To update your subscription preferences or to unsubscribe:
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > If you are using Nabble or Gmane, please see
> > https://wiki.gnucash.org/wiki/Mailing_Lists for more information. -
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
>
>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Adding a new currency

2022-07-08 Thread Geert Janssens
Op vrijdag 8 juli 2022 10:18:51 CEST schreef Peter West:
> So cryptocurrencies will never be supported currencies, because
> cryptocurrencies will never be part of ISO-4217.
> 

At some point I proposed to add code to allow non-ISO-4217 currencies. While 
not formally 
correct this could be helpful for simple personal accounting. Such alternate 
currency group 
could also have been used to manage crypto currencies.

Unfortunately I don't have time left to implement this and I don't think any of 
the other 
active devs has it anywhere on their priority list.

So "never" ? Depends. For to to have any chance though it will require someone 
to step up 
and implement this in a way that fits the gnucash design and concepts.

Regards,

Geert

> —
> Peter West
> p...@pbw.id.au
> “And the rain fell, and the floods came, and the winds blew and beat against
> that house, and it fell, and great was the fall of it.”
> > On 8 Jul 2022, at 2:51 am, john  wrote:
> >> On Jul 7, 2022, at 9:23 AM, Esteban Maringolo 
> >> wrote:
> >> 
> >> Hi,
> >> 
> >> Is it possible to manually add a new currency to the list of currencies?
> >> 
> >> I will take care of updating the exchange rate.
> > 
> > No. Currency in GnuCash is defined as "currencies recognized by ISO-4217".
> > Everything else is a commodity.
> > 
> > Regards,
> > John Ralls
> > ___
> > gnucash-user mailing list
> > gnucash-user@gnucash.org
> > To update your subscription preferences or to unsubscribe:
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > If you are using Nabble or Gmane, please see
> > https://wiki.gnucash.org/wiki/Mailing_Lists for more information. -
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> 
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information. -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Adding a new currency

2022-07-08 Thread Peter West
So cryptocurrencies will never be supported currencies, because 
cryptocurrencies will never be part of ISO-4217.

—
Peter West
p...@pbw.id.au
“And the rain fell, and the floods came, and the winds blew and beat against 
that house, and it fell, and great was the fall of it.”

> On 8 Jul 2022, at 2:51 am, john  wrote:
> 
> 
> 
>> On Jul 7, 2022, at 9:23 AM, Esteban Maringolo  wrote:
>> 
>> Hi,
>> 
>> Is it possible to manually add a new currency to the list of currencies?
>> 
>> I will take care of updating the exchange rate.
> 
> No. Currency in GnuCash is defined as "currencies recognized by ISO-4217". 
> Everything else is a commodity.
> 
> Regards,
> John Ralls
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Adding a new currency

2022-07-07 Thread john



> On Jul 7, 2022, at 9:23 AM, Esteban Maringolo  wrote:
> 
> Hi,
> 
> Is it possible to manually add a new currency to the list of currencies?
> 
> I will take care of updating the exchange rate.

No. Currency in GnuCash is defined as "currencies recognized by ISO-4217". 
Everything else is a commodity.

Regards,
John Ralls
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.