From 4bb19bbda49d069f1cae5cdf30262685a583f9a2 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sun, 12 Oct 2003 19:11:19 +0000 Subject: [PATCH] oops, missed a spot ... git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9490 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/business/business-core/gncCustomer.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/business/business-core/gncCustomer.c b/src/business/business-core/gncCustomer.c index 2ec0ebc2b4..ca3a9f66d3 100644 --- a/src/business/business-core/gncCustomer.c +++ b/src/business/business-core/gncCustomer.c @@ -169,24 +169,14 @@ gncCloneCustomer (GncCustomer *from, QofBook *book) cust->currency = gnc_commodity_table_lookup_unique (comtbl, ucom); } - /* Find the matching bill term in the new book, - * else clone that too. */ + /* Find the matching bill term, tax table in the new book */ if (from->terms) { cust->terms = gncBillTermObtainTwin(from->terms, book); } - - /* Find the matching taxtable in the new book, - * else clone that too. */ if (from->taxtable) { - GncTaxTable *txtab; - txtab = (GncTaxTable *) qof_instance_lookup_twin (QOF_INSTANCE(from->taxtable), book); - if (!txtab) - { - txtab = gncCloneTaxTable (from->taxtable, book); - } - cust->taxtable = txtab; + cust->taxtable = gncTaxTableObtainTwin (from->taxtable, book); } addObj (cust);