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
pull/2031/head
Robert Fewell 2 years ago
parent 3d0e65bb7f
commit ae8bb62dc5

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

Loading…
Cancel
Save