E-money balance update.

John Ralls jralls at ceridwen.us
Wed May 16 20:44:05 EDT 2012


On May 16, 2012, at 7:11 AM, Sergey wrote:

> Ok, thank you!
> But why it is not development question?
> I think I have to write Scheme function, that will check my balance
> and update account.
> Or do Scheme scripts relate to users' maillist?
> 
> On Wed, May 16, 2012 at 8:41 PM, John Ralls <jralls at ceridwen.us> wrote:
>> 
>> On May 16, 2012, at 5:59 AM, Sergey wrote:
>> 
>>> Hi all!
>>> 
>>> I want to add a ability to update my electronic-money asset balance
>>> from Internet.
>>> Can you point me to the related documentation? I found only Custom
>>> reports examples in the wiki.
>> 
>> That is a user question, and therefore not appropriate for the development list. I've CC'd the user list with this reply, please do the same for any followups.
>> 
>> Neither Gnucash nor AFAIK AQBanking support any of the "electronic-money" schemes, so you'll have to arrange to get a transaction file in one of the formats supported by File>Import and import it.

Please remember to cc the list on your replies. You can use "reply all" or, if your mail client supports it, "reply list".

The developer list is for discussing development of Gnucash itself, not scripting or even custom reports. Those are user activities.

The next problem is that you don't "update your balance" in Gnucash. Gnucash calculates the balance of an account from the transactions which you enter or import. Alternatively, if you are interested in updating the current value of some "electronic-currency" scrip in a real currency (US Dollars or Euros, perhaps), you would import price information, treating the scrip like a stock. No coding is required to import transactions provided they're formatted in a way that Gnucash already understands. Importing properly formatted price data is also pretty straightforward, but it's not exposed via the command line or GUI so you would need a small script to call the requisite functions. Take a look at src/scm/price-quotes.scm to see what you'd need to do.

Regards,
John Ralls




More information about the gnucash-user mailing list