mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 11:08:28 +00:00
Bug fixes in recurring transaction matching.
This commit is contained in:
@@ -40,7 +40,7 @@ class EloquentJournalTrigger
|
|||||||
*/
|
*/
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach ($matches as $word) {
|
foreach ($matches as $word) {
|
||||||
if (!(strpos($description, $word) === false)) {
|
if (!(strpos($description, strtolower($word)) === false)) {
|
||||||
$count++;
|
$count++;
|
||||||
\Log::debug('Recurring transaction #' . $recurring->id . ': word "' . $word . '" found in "' . $description . '".');
|
\Log::debug('Recurring transaction #' . $recurring->id . ': word "' . $word . '" found in "' . $description . '".');
|
||||||
}
|
}
|
||||||
|
@@ -30,8 +30,13 @@ class EloquentRecurringTrigger
|
|||||||
|
|
||||||
public function createReminders()
|
public function createReminders()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \RecurringTransaction $recurring
|
||||||
|
* @param \TransactionJournal $journal
|
||||||
|
*/
|
||||||
public function rescan(\RecurringTransaction $recurring, \TransactionJournal $journal)
|
public function rescan(\RecurringTransaction $recurring, \TransactionJournal $journal)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@@ -42,7 +47,7 @@ class EloquentRecurringTrigger
|
|||||||
$description = strtolower($journal->description);
|
$description = strtolower($journal->description);
|
||||||
$count = 0;
|
$count = 0;
|
||||||
foreach ($matches as $word) {
|
foreach ($matches as $word) {
|
||||||
if (!(strpos($description, $word) === false)) {
|
if (!(strpos($description, strtolower($word)) === false)) {
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user