changing RUR to RUB in old accounts file
Derek Atkins
warlord at MIT.EDU
Wed Feb 13 09:59:44 EST 2008
Quoting Alexey <bonifaciy at mail.ru>:
> On Tue, 2008-02-12 at 12:48 -0500, Derek Atkins wrote:
>> Hi,
>>
>> Alexey <bonifaciy at mail.ru> writes:
>>
>> > Thanks for your answer, though it didn't help.
>> > I upgraded to gnucash 2.2.2 coming with Debian Lenny distribution.
>> > However, still when I open my file and go to window "Tools->Security
>> > Editor" I see RUR standing for Russian ruble.
>>
>> I don't know what else to tell you. It's possible that the PriceDB
>> code is broken and doesn't use the conversion routines, but I find
>> that highly unlikely. The only other possibility I can think of is
>> that your data file contains the RUR currency so it's re-adding it to
>> the currency database. You might try uncompressing your data file and
>> seeing if there's an RUR gnc:commodity definition near the top of the
>> file, and if so remove it.
>>
>> > When I create new file then it's RUB but I don't need new files at the
>> > moment. I want to continue the old tile with updated securities.
>> >
>> > So, the question in another words:
>> > Is there a way to edit securities ?
>>
>> SECURITIES? Yes. CURRENCIES? No. The currencies are all
>> hard-coded, and in 2.2.2 there is only the RUB, not RUR. But
>> I suspect your data file has an instance of RUR and GnuCash isn't
>> properly converting.
>>
>> -derek
>>
>
> Yes, you are right. I fixed it:
>
> 1) I uncompessed (gzip) the data file.
> 2) I replaced "RUR" pattern to "RUB" everywhere in the file (in my case
> more than 500 places).
> 3) I compressed it (gzip) and opened with GnuCash.
> Now it works with correct RUB currency name.
Did you have an instance of a gnc:commodity at the top of the file
that encoded RUR?
> Thanks for the help!
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list