Skip to content

Commit

Permalink
Merge Ralf Habacker's 'activate-opening-balance-accounts' into maint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Jan 23, 2023
2 parents 19bbde7 + 5a490d9 commit a81b72f
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 @@ -1428,6 +1428,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 @@ -758,6 +758,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.14 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 a81b72f

Please sign in to comment.