Amendment to 73822f97a [1/2] use heuristics to scrub budget signs

Testing income<0 to conclude "none reversal" is likely a more sound
strategy than testing liability>0.
This commit is contained in:
Christopher Lam
2022-01-04 08:24:06 +08:00
parent 85a62c03ea
commit f7ee644695

View File

@@ -113,7 +113,7 @@ heuristics_on_budget (GncBudget * budget, Account *root)
result =
heuristics.expense < 0 ? HEURISTICS_INC_EXP :
heuristics.liability > 0 ? HEURISTICS_NONE :
heuristics.income < 0 ? HEURISTICS_NONE :
HEURISTICS_CREDIT_ACC;
LEAVE ("heuristics_on_budget %s: A(%d) L(%d) Inc(%d) Exp(%d) Eq(%d) = %d",