Bug 798496 - gncEntry Quantity and Discount are misusing commodity scu

This commit is contained in:
Christopher Lam 2022-04-05 23:15:26 +08:00
parent c8f1caa95f
commit ebbf7565c9

View File

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