From 8a167d186bcfecbef381a791089afebe8a74a607 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Mon, 30 Jan 2023 13:48:19 +0100 Subject: [PATCH] Payment dialog - always list all possible post accounts Before only the post account in the currency of the selected vendor or customer was available. This was reported in bug 797487n comment 17. --- gnucash/gnome/dialog-payment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnucash/gnome/dialog-payment.c b/gnucash/gnome/dialog-payment.c index fa9a403ac4..cbd2dd21f3 100644 --- a/gnucash/gnome/dialog-payment.c +++ b/gnucash/gnome/dialog-payment.c @@ -215,7 +215,7 @@ gnc_payment_window_refresh_handler (G_GNUC_UNUSED GHashTable *changes, gpointer PaymentWindow *pw = data; gnc_payment_window_fill_docs_list (pw); - pw->post_acct = gnc_account_select_combo_fill (pw->post_combo, pw->book, pw->acct_types, pw->acct_commodities); + pw->post_acct = gnc_account_select_combo_fill (pw->post_combo, pw->book, pw->acct_types, NULL); } static gboolean @@ -629,7 +629,7 @@ gnc_payment_dialog_owner_changed (PaymentWindow *pw) if (gncOwnerIsValid(owner)) pw->acct_commodities = gncOwnerGetCommoditiesList (owner); - pw->post_acct = gnc_account_select_combo_fill (pw->post_combo, pw->book, pw->acct_types, pw->acct_commodities); + pw->post_acct = gnc_account_select_combo_fill (pw->post_combo, pw->book, pw->acct_types, NULL); if (gncOwnerEqual(&pw->owner, &pw->tx_info->owner) && pw->tx_info->post_acct) { pw->post_acct = pw->tx_info->post_acct;