From 5ff2c190eb735f05c3cc4167a8e4a2f6192ccdd1 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Mon, 6 Jan 2025 11:05:41 +0000 Subject: [PATCH] Bug 799502 - Autocomplete of split only completes description This commit fixes a regression when bug 799430 was fixed, should of added to the if condition instead of replacing it. --- gnucash/register/ledger-core/split-register-control.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnucash/register/ledger-core/split-register-control.cpp b/gnucash/register/ledger-core/split-register-control.cpp index 5e9bda9672..52400915cd 100644 --- a/gnucash/register/ledger-core/split-register-control.cpp +++ b/gnucash/register/ledger-core/split-register-control.cpp @@ -697,7 +697,8 @@ gnc_find_split_in_trans_by_memo (Transaction *trans, const char *memo, if (unit_price) { gnc_numeric price = xaccSplitGetSharePrice (split); - if (!gnc_numeric_zero_p (price)) + if (!gnc_numeric_equal (price, gnc_numeric_create (1, 1)) && + !gnc_numeric_zero_p (price)) continue; }