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