mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix summary bar errors on invoices since commit 21411.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21418 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
62e1b1ac57
commit
5b487e03c8
@ -356,7 +356,7 @@ void gnc_entry_ledger_load (GncEntryLedger *ledger, GList *entry_list)
|
|||||||
/* The rest of this does not apply to expense vouchers */
|
/* The rest of this does not apply to expense vouchers */
|
||||||
if (ledger->type != GNCENTRY_EXPVOUCHER_ENTRY)
|
if (ledger->type != GNCENTRY_EXPVOUCHER_ENTRY)
|
||||||
{
|
{
|
||||||
const GncOwner *owner = gncInvoiceGetOwner (ledger->invoice);
|
const GncOwner *owner = gncOwnerGetEndOwner (gncInvoiceGetOwner (ledger->invoice));
|
||||||
GncTaxTable *table = NULL;
|
GncTaxTable *table = NULL;
|
||||||
GncTaxIncluded taxincluded_p = GNC_TAXINCLUDED_USEGLOBAL;
|
GncTaxIncluded taxincluded_p = GNC_TAXINCLUDED_USEGLOBAL;
|
||||||
gboolean taxincluded = FALSE;
|
gboolean taxincluded = FALSE;
|
||||||
@ -364,7 +364,7 @@ void gnc_entry_ledger_load (GncEntryLedger *ledger, GList *entry_list)
|
|||||||
GNCOptionDB *odb;
|
GNCOptionDB *odb;
|
||||||
|
|
||||||
/* Determine the TaxIncluded and Discount values */
|
/* Determine the TaxIncluded and Discount values */
|
||||||
switch (gncOwnerGetType (gncOwnerGetEndOwner (owner)))
|
switch (gncOwnerGetType (owner))
|
||||||
{
|
{
|
||||||
case GNC_OWNER_CUSTOMER:
|
case GNC_OWNER_CUSTOMER:
|
||||||
taxincluded_p = gncCustomerGetTaxIncluded (owner->owner.customer);
|
taxincluded_p = gncCustomerGetTaxIncluded (owner->owner.customer);
|
||||||
|
Loading…
Reference in New Issue
Block a user