Unable to create new Namespace in Price Editor

Wm tcnw81 at tarrcity.demon.co.uk
Fri Jun 10 17:36:57 EDT 2016


On Thu, 09 Jun 2016 23:33:51 +0000, in gmane.comp.gnome.apps.gnucash.user,
Jonathan Wells <jon.wells at yakka.ca> wrote:

> Thanks for that info.
> 
> That works for creating the Namespace, a Security, and subsequently for 
> creating a Price.
> 
> But my idea will not work as the only account type that can be 
> denominated using the new MILEAGE commodity is "Stock" or "Mutual Fund". 
>   Ideally I want to enter MILEAGE directly from the vehicle log into an 
> expense account transaction as if it was a currency worth 55c per unit.  
> I will do the calculation manually and enter it as a normal expense.

I'm not entirely sure I understand how you were expecting things to work
but the currency
XXX No Currency
is normally involved and intended for just this purpose by ISO_4217

if you set the expense account up as XXX an xfer from an asset a/c to the
expense a/c will ask you for an exchange rate.

as an alternative do you know you can do sums inside gnc money amount
fields ?

e.g. from an Asset a/c like Bank

Dt: 		2016-06-10
Desc: 		mileage to Jun 10
Transfer: 	Exp:MileageCosts
Cr:		123*0.55

where 123 is the mileage you want to be expensed at .55 each, you'll end up
with 67.65 in money being knocked off the asset and recorded in the expense
account.

If your main point was to record miles per month rather than the monetary
result of miles then gnc is not well suited to the task.  The main reason
for this is that you don't actually have any miles, i.e. there isn't an
asset to increase or decrease if you think about it :)  gnc is best at
recording the monetary effect of real world stuff rather than real world
stuff itself, which is, for a modest program, as many of us think it should
be.

If this is a "just thinking about it" issue let the list know, someone else
may have another approach.

-- 
Wm




More information about the gnucash-user mailing list