Skip to content

Commit

Permalink
Activate feature GNC_FEATURE_EQUITY_TYPE_OPENING_BALANCE
Browse files Browse the repository at this point in the history
  • Loading branch information
rhabacker authored and Ralf committed May 20, 2021
1 parent 4ab9bd4 commit 5a490d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gnucash/gnome/assistant-hierarchy.c
Expand Up @@ -1424,6 +1424,9 @@ on_finish (GtkAssistant *gtkassistant,
ENTER (" ");
com = gnc_currency_edit_get_currency (GNC_CURRENCY_EDIT(data->currency_selector));

if (!gnc_using_equity_type_opening_balance_account (gnc_get_current_book()))
gnc_set_use_equity_type_opening_balance_account (gnc_get_current_book());

if (data->our_account_tree)
{
gnc_account_foreach_descendant (data->our_account_tree,
Expand Down
4 changes: 4 additions & 0 deletions gnucash/gnome/gnc-plugin-page-register.c
Expand Up @@ -742,6 +742,10 @@ gnc_plugin_page_register_new_common (GNCLedgerDisplay* ledger)
if (!gnc_features_check_used (gnc_get_current_book(), GNC_FEATURE_REG_SORT_FILTER))
gnc_features_set_used (gnc_get_current_book(), GNC_FEATURE_REG_SORT_FILTER);

// added for version 4.5 onwards
if (!gnc_using_equity_type_opening_balance_account (gnc_get_current_book()))
gnc_set_use_equity_type_opening_balance_account (gnc_get_current_book());

/* Is there an existing page? */
gsr = gnc_ledger_display_get_user_data (ledger);
if (gsr)
Expand Down

0 comments on commit 5a490d9

Please sign in to comment.