From ebbf7565c985dd03dd14135c6cd4b5b6770c74ac Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Tue, 5 Apr 2022 23:15:26 +0800 Subject: [PATCH] Bug 798496 - gncEntry Quantity and Discount are misusing commodity scu --- gnucash/register/ledger-core/gncEntryLedger.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/gnucash/register/ledger-core/gncEntryLedger.c b/gnucash/register/ledger-core/gncEntryLedger.c index bff49b3692..6bcfb8d0c5 100644 --- a/gnucash/register/ledger-core/gncEntryLedger.c +++ b/gnucash/register/ledger-core/gncEntryLedger.c @@ -265,22 +265,6 @@ gnc_entry_ledger_config_cells (GncEntryLedger *ledger) ((ComboCell *) gnc_table_layout_get_cell (ledger->table->layout, ENTRY_ACTN_CELL), FALSE); - /* Use GNC_COMMODITY_MAX_FRACTION for all prices and quantities */ - gnc_price_cell_set_fraction - ((PriceCell *) - gnc_table_layout_get_cell (ledger->table->layout, ENTRY_PRIC_CELL), - GNC_COMMODITY_MAX_FRACTION); - - gnc_price_cell_set_fraction - ((PriceCell *) - gnc_table_layout_get_cell (ledger->table->layout, ENTRY_DISC_CELL), - GNC_COMMODITY_MAX_FRACTION); - - gnc_price_cell_set_fraction - ((PriceCell *) gnc_table_layout_get_cell (ledger->table->layout, - ENTRY_QTY_CELL), - GNC_COMMODITY_MAX_FRACTION); - /* add menu items for the action and payment cells */ gnc_entry_ledger_config_action (ledger); }