Skip to content

Commit

Permalink
Merge branch 'maint-progress3' into maint #1312
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Apr 10, 2022
2 parents d022651 + aab3395 commit 736d223
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
16 changes: 0 additions & 16 deletions gnucash/register/ledger-core/gncEntryLedger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 3 additions & 1 deletion gnucash/report/reports/standard/invoice.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/engine/gnc-numeric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 736d223

Please sign in to comment.