27 #include "business-options.h"
28 #include "business-helpers.h"
30 GncTaxTable* gnc_business_get_default_tax_table (
QofBook *book, GncOwnerType ownertype)
35 odb = gnc_option_db_new_for_type (GNC_ID_BOOK);
36 qof_book_load_options (book, gnc_option_db_load_from_kvp, odb);
40 case GNC_OWNER_CUSTOMER:
41 table = gnc_option_db_lookup_taxtable_option (odb,
43 "Default Customer TaxTable",
47 case GNC_OWNER_VENDOR:
48 table = gnc_option_db_lookup_taxtable_option (odb,
50 "Default Vendor TaxTable",
58 gnc_option_db_destroy (odb);