Fix reversed parameters in call to xaccAccountTypesCompatible.

Missed in 2258e7a4.
This commit is contained in:
John Ralls 2021-05-01 09:53:56 -07:00
parent ca6fcf8af7
commit ac1abcb8c3
2 changed files with 2 additions and 1 deletions

View File

@ -879,7 +879,7 @@ gnc_common_ok (AccountWindow *aw)
}
/* check whether the types of child and parent are compatible */
if (!xaccAccountTypesCompatible (aw->type, xaccAccountGetType (parent)))
if (!xaccAccountTypesCompatible (xaccAccountGetType (parent), aw->type))
{
const char *message = _("The selected account type is incompatible with "
"the one of the selected parent.");

View File

@ -487,6 +487,7 @@ gnucash/report/reports/standard/dashboard.scm
gnucash/report/reports/standard/equity-statement.scm
gnucash/report/reports/standard/general-journal.scm
gnucash/report/reports/standard/general-ledger.scm
gnucash/report/reports/standard/ifrs-cost-basis.scm
gnucash/report/reports/standard/income-gst-statement.scm
gnucash/report/reports/standard/income-statement.scm
gnucash/report/reports/standard/invoice.scm