mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
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…
Reference in New Issue
Block a user