mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
166b383568
commit
5ff2c190eb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user