mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
Bug 796409 - Incorrect Current Value for Stocks
This is in the register summary bar. Missed calculating the value in
8877f86
.
This commit is contained in:
parent
243bf8afce
commit
6b5ee8f5e8
@ -569,8 +569,11 @@ gsr_redraw_all_cb (GnucashRegister *g_reg, gpointer data)
|
||||
QofBook *book = gnc_account_get_book (leader);
|
||||
GNCPriceDB *pricedb = gnc_pricedb_get_db (book);
|
||||
gnc_commodity *currency = gnc_default_currency ();
|
||||
gnc_numeric value =
|
||||
gnc_pricedb_convert_balance_latest_price (pricedb, amount,
|
||||
commodity, currency);
|
||||
print_info = gnc_commodity_print_info (currency, TRUE);
|
||||
xaccSPrintAmount (string, amount, print_info);
|
||||
xaccSPrintAmount (string, value, print_info);
|
||||
gnc_set_label_color (gsr->value_label, amount);
|
||||
gtk_label_set_text (GTK_LABEL (gsr->value_label), string);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user