From 564b9874575bb689974caca91a6737c8b12ef9cb Mon Sep 17 00:00:00 2001 From: Mike Evans Date: Sun, 25 Jan 2015 11:08:05 +0000 Subject: [PATCH] Numeric values with more than commodity smallest fraction get silently dropped. If there are more DPs than the commodity smallest fraction they get lost when calling gnc_numeric_convert(). Removed the call. --- src/plugins/bi_import/dialog-bi-import.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/bi_import/dialog-bi-import.c b/src/plugins/bi_import/dialog-bi-import.c index 05ef930e2a..3c2a8b00fa 100644 --- a/src/plugins/bi_import/dialog-bi-import.c +++ b/src/plugins/bi_import/dialog-bi-import.c @@ -719,7 +719,6 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book, { gncEntrySetBillAccount (entry, acc); gnc_exp_parser_parse (price, &value, NULL); - value = gnc_numeric_convert (value, denom, GNC_HOW_RND_NEVER); gncEntrySetBillPrice (entry, value); gncEntrySetBillTaxable (entry, text2bool (taxable)); gncEntrySetBillTaxIncluded (entry, text2bool (taxincluded)); @@ -732,13 +731,11 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book, gncEntrySetNotes (entry, notes); gncEntrySetInvAccount (entry, acc); gnc_exp_parser_parse (price, &value, NULL); - value = gnc_numeric_convert (value, denom, GNC_HOW_RND_NEVER); gncEntrySetInvPrice (entry, value); gncEntrySetInvTaxable (entry, text2bool (taxable)); gncEntrySetInvTaxIncluded (entry, text2bool (taxincluded)); gncEntrySetInvTaxTable (entry, gncTaxTableLookupByName (book, tax_table)); gnc_exp_parser_parse (discount, &value, NULL); - value = gnc_numeric_convert (value, denom, GNC_HOW_RND_NEVER); gncEntrySetInvDiscount (entry, value); gncEntrySetInvDiscountType (entry, text2disc_type (disc_type)); gncEntrySetInvDiscountHow (entry, text2disc_how (disc_how));