mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
oops, missed a spot ...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9490 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
5789d865f8
commit
4bb19bbda4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user