Bug 742089 - Decimal places

Set the debit and credit cells' print_info to the account so that the
decimal places are correct for the commodity.
This commit is contained in:
John Ralls 2015-03-14 11:46:49 +09:00
parent fe3eb2086b
commit 39fdc1319d

View File

@ -38,6 +38,7 @@
#include "split-register.h"
#include "split-register-p.h"
#include "engine-helpers.h"
#include "pricecell.h"
/* This static indicates the debugging module that this .o belongs to. */
@ -377,6 +378,15 @@ gnc_split_register_load (SplitRegister *reg, GList * slist,
pending_trans = xaccTransLookup (&info->pending_trans_guid,
gnc_get_current_book ());
/* Bug 742089: Set the debit and credit cells' print_info to the account */
gnc_price_cell_set_print_info
((PriceCell *) gnc_table_layout_get_cell (table->layout, DEBT_CELL),
gnc_account_print_info (default_account, FALSE));
gnc_price_cell_set_print_info
((PriceCell *) gnc_table_layout_get_cell (table->layout, CRED_CELL),
gnc_account_print_info (default_account, FALSE));
/* make sure we have a blank split */
if (blank_split == NULL)
{