r21418 - gnucash/trunk/src/business/business-ledger - Fix summary bar errors on invoices since commit 21411.

Geert Janssens gjanssens at code.gnucash.org
Fri Oct 14 10:58:04 EDT 2011


Author: gjanssens
Date: 2011-10-14 10:58:03 -0400 (Fri, 14 Oct 2011)
New Revision: 21418
Trac: http://svn.gnucash.org/trac/changeset/21418

Modified:
   gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c
Log:
Fix summary bar errors on invoices since commit 21411.

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c	2011-10-14 14:57:54 UTC (rev 21417)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c	2011-10-14 14:58:03 UTC (rev 21418)
@@ -356,7 +356,7 @@
             /* The rest of this does not apply to expense vouchers */
             if (ledger->type != GNCENTRY_EXPVOUCHER_ENTRY)
             {
-                const GncOwner *owner = gncInvoiceGetOwner (ledger->invoice);
+                const GncOwner *owner = gncOwnerGetEndOwner (gncInvoiceGetOwner (ledger->invoice));
                 GncTaxTable *table = NULL;
                 GncTaxIncluded taxincluded_p = GNC_TAXINCLUDED_USEGLOBAL;
                 gboolean taxincluded = FALSE;
@@ -364,7 +364,7 @@
                 GNCOptionDB *odb;
 
                 /* Determine the TaxIncluded and Discount values */
-                switch (gncOwnerGetType (gncOwnerGetEndOwner (owner)))
+                switch (gncOwnerGetType (owner))
                 {
                 case GNC_OWNER_CUSTOMER:
                     taxincluded_p = gncCustomerGetTaxIncluded (owner->owner.customer);



More information about the gnucash-changes mailing list