Bug #504954 - Wrong calculation of TAX

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19475 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-08-26 16:35:12 +00:00
parent 63573c9080
commit 645be3a163

View File

@ -1027,7 +1027,7 @@ GncOrder * gncEntryGetOrder (const GncEntry *entry)
*
* The SCU is the denominator to convert the value.
*
* The discount return value is just for entertainment -- you may way
* The discount return value is just for entertainment -- you may want
* to let a consumer know how much they saved.
*/
void gncEntryComputeValue (gnc_numeric qty, gnc_numeric price,
@ -1290,7 +1290,7 @@ gncEntryRecomputeValues (GncEntry *entry)
entry->i_taxincluded,
entry->i_discount, entry->i_disc_type,
entry->i_disc_how,
denom,
0,
&(entry->i_value), &(entry->i_disc_value),
&(entry->i_tax_values));
@ -1299,7 +1299,7 @@ gncEntryRecomputeValues (GncEntry *entry)
(entry->b_taxable ? entry->b_tax_table : NULL),
entry->b_taxincluded,
gnc_numeric_zero(), GNC_AMT_TYPE_VALUE, GNC_DISC_PRETAX,
denom,
0,
&(entry->b_value), NULL, &(entry->b_tax_values));
entry->i_value_rounded = gnc_numeric_convert (entry->i_value, denom,