mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
fe3eb2086b
commit
39fdc1319d
@ -38,6 +38,7 @@
|
|||||||
#include "split-register.h"
|
#include "split-register.h"
|
||||||
#include "split-register-p.h"
|
#include "split-register-p.h"
|
||||||
#include "engine-helpers.h"
|
#include "engine-helpers.h"
|
||||||
|
#include "pricecell.h"
|
||||||
|
|
||||||
|
|
||||||
/* This static indicates the debugging module that this .o belongs to. */
|
/* 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,
|
pending_trans = xaccTransLookup (&info->pending_trans_guid,
|
||||||
gnc_get_current_book ());
|
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 */
|
/* make sure we have a blank split */
|
||||||
if (blank_split == NULL)
|
if (blank_split == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user