mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2002-1-6 Benoit Gr�goire <bock@step.polymtl.ca>
* src/import-export/import-backend.c: Fixed the date heuristics modifications, which had an unfortunate interaction with old debugging code, causing the score to be reversed, and making the matcher mostly unusable. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7808 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
feeec1f6e0
commit
982a31cff0
@ -1,3 +1,6 @@
|
||||
2002-1-6 Benoit Grégoire <bock@step.polymtl.ca>
|
||||
* src/import-export/import-backend.c: Fixed the date heuristics modifications, which had an unfortunate interaction with old debugging code, causing the score to be reversed, and making the matcher mostly unusable.
|
||||
|
||||
2003-01-09 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/register/ledger-core/split-register-model.c:
|
||||
|
@ -478,19 +478,19 @@ static void split_find_match (GNCImportTransInfo * trans_info,
|
||||
if (datediff_day == 0)
|
||||
{
|
||||
prob = prob+3;
|
||||
/*DEBUG("heuristics: probability + 3 (date)");*/
|
||||
DEBUG("heuristics: probability + 3 (date)");
|
||||
}
|
||||
else if (datediff_day <= MATCH_DATE_THRESHOLD)
|
||||
{
|
||||
prob = prob+2;
|
||||
/*DEBUG("heuristics: probability + 2 (date)");*/
|
||||
DEBUG("heuristics: probability + 2 (date)");
|
||||
}
|
||||
else if (datediff_day > MATCH_DATE_NOT_THRESHOLD)
|
||||
{
|
||||
/* Extra penalty if that split lies awfully far away
|
||||
from the given one. */
|
||||
prob = prob-10;
|
||||
/* DEBUG("heuristics: probability - 10 (date)"); */
|
||||
DEBUG("heuristics: probability - 10 (date)");
|
||||
}
|
||||
|
||||
|
||||
@ -545,8 +545,8 @@ static void split_find_match (GNCImportTransInfo * trans_info,
|
||||
(strlen(gnc_import_get_trans_online_id(xaccSplitGetParent(split)))>0))
|
||||
{
|
||||
/* If the pref is to show match even with online ID's,
|
||||
reverse the confidence value to distinguish them */
|
||||
prob = 0-prob;
|
||||
puninsh the transaction with online if */
|
||||
prob = prob-3;
|
||||
}
|
||||
|
||||
/* Is the probability high enough? Otherwise do nothing and return. */
|
||||
|
Loading…
Reference in New Issue
Block a user