Bug 799430 - Type-Ahead feature lost account setting functionality

When using split autocomplete, the transfer account was not being set
due to a change in xaccSplitGetSharePrice in 4.10 that return 0 instead
of 1 when there is no price so reflect this change in the following
function gnc_find_split_in_trans_by_memo
This commit is contained in:
Robert Fewell 2024-10-11 10:21:46 +01:00
parent 3d0e65bb7f
commit ae8bb62dc5

View File

@ -696,7 +696,7 @@ gnc_find_split_in_trans_by_memo (Transaction *trans, const char *memo,
if (unit_price)
{
gnc_numeric price = xaccSplitGetSharePrice (split);
if (!gnc_numeric_equal (price, gnc_numeric_create (1, 1)))
if (!gnc_numeric_zero_p (price))
continue;
}