Bug 734183

Geert Janssens janssens-geert at telenet.be
Thu Aug 7 10:49:15 EDT 2014

On Thursday 07 August 2014 15:27:32 Mike Evans wrote:
> Ah found it by looking in the .gnucash xml file.  The discount is
> saved as 25/1 and the price as 75/1.  In gncEntryComputeValues() the
> denom is read from the currency, ie 100 so it divides 25 by the denom
> and gets the wrong answers which is effectively zero.  Hence no
> discount.  I need to run gnc_numeric_convert(...) to set the denom
> correctly.
> Thanks Geert, sometimes just asking the questions "out loud" is what's
> needed. :)
> Mike

Nice job :)

And as usual still something totally different...


More information about the gnucash-devel mailing list