mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
whoops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9975 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
94c46181df
commit
894da26df6
@ -78,11 +78,15 @@ DirectionPolicyGetSplit (GNCPolicy *pcy, GNCLot *lot, short reverse)
|
||||
}
|
||||
while (node)
|
||||
{
|
||||
gboolean is_match;
|
||||
gboolean is_positive;
|
||||
split = node->data;
|
||||
if (split->lot) goto donext;
|
||||
|
||||
if (common_currency != split->parent->common_currency) goto donext;
|
||||
/* Allow equiv currencies */
|
||||
is_match = gnc_commodity_equiv (common_currency,
|
||||
split->parent->common_currency);
|
||||
if (FALSE == is_match) goto donext;
|
||||
|
||||
is_positive = gnc_numeric_positive_p (split->amount);
|
||||
if ((want_positive && is_positive) ||
|
||||
|
Loading…
Reference in New Issue
Block a user