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:
John Ralls 2018-05-26 10:32:14 -07:00
parent 243bf8afce
commit 6b5ee8f5e8

View File

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