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.
This commit is contained in:
Mike Evans 2015-01-25 11:08:05 +00:00
parent 2494bfc63f
commit 564b987457

View File

@ -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));