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.
This commit is contained in:
Robert Fewell 2025-01-06 11:05:41 +00:00
parent 166b383568
commit 5ff2c190eb

View File

@ -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;
}