r19475 - gnucash/trunk/src/engine - Bug #504954 - Wrong calculation of TAX

Geert Janssens gjanssens at code.gnucash.org
Thu Aug 26 12:35:13 EDT 2010


Author: gjanssens
Date: 2010-08-26 12:35:12 -0400 (Thu, 26 Aug 2010)
New Revision: 19475
Trac: http://svn.gnucash.org/trac/changeset/19475

Modified:
   gnucash/trunk/src/engine/gncEntry.c
Log:
Bug #504954 - Wrong calculation of TAX

Modified: gnucash/trunk/src/engine/gncEntry.c
===================================================================
--- gnucash/trunk/src/engine/gncEntry.c	2010-08-26 11:17:52 UTC (rev 19474)
+++ gnucash/trunk/src/engine/gncEntry.c	2010-08-26 16:35:12 UTC (rev 19475)
@@ -1027,7 +1027,7 @@
  *
  * 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 @@
                           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 @@
                           (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,



More information about the gnucash-changes mailing list