Merge branch 'maint-progress3' into maint #1312

This commit is contained in:
Christopher Lam 2022-04-10 12:05:08 +08:00
commit 736d223198
3 changed files with 4 additions and 18 deletions

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

View File

@ -447,7 +447,9 @@ for styling the invoice. Please see the exported report for the CSS class names.
(addif (quantity-col used-columns)
(gnc:make-html-table-cell/markup
"number-cell"
(gncEntryGetDocQuantity entry credit-note?)))
(xaccPrintAmount
(gncEntryGetDocQuantity entry credit-note?)
(gnc-default-print-info #f))))
(addif (price-col used-columns)
(gnc:make-html-table-cell/markup

View File

@ -1090,7 +1090,7 @@ gnc_numeric_to_decimal(gnc_numeric *a, guint8 *max_decimal_places)
}
catch (const std::exception& err)
{
PWARN("%s", err.what());
PINFO ("%s", err.what());
return FALSE;
}
}