mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Added some debug.
This commit is contained in:
@@ -9,6 +9,7 @@ use FireflyIII\Models\Bill;
|
|||||||
use FireflyIII\Models\Transaction;
|
use FireflyIII\Models\Transaction;
|
||||||
use FireflyIII\Models\TransactionJournal;
|
use FireflyIII\Models\TransactionJournal;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
|
use Log;
|
||||||
use Navigation;
|
use Navigation;
|
||||||
use Steam;
|
use Steam;
|
||||||
|
|
||||||
@@ -277,6 +278,7 @@ class BillRepository implements BillRepositoryInterface
|
|||||||
$description = strtolower($journal->description) . ' ' . strtolower($journal->destination_account->name);
|
$description = strtolower($journal->description) . ' ' . strtolower($journal->destination_account->name);
|
||||||
$wordMatch = $this->doWordMatch($matches, $description);
|
$wordMatch = $this->doWordMatch($matches, $description);
|
||||||
$amountMatch = $this->doAmountMatch($journal->amount_positive, $bill->amount_min, $bill->amount_max);
|
$amountMatch = $this->doAmountMatch($journal->amount_positive, $bill->amount_min, $bill->amount_max);
|
||||||
|
Log::debug('Journal #' . $journal->id . ' has description "' . $description . '"');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If both, update!
|
* If both, update!
|
||||||
@@ -286,6 +288,8 @@ class BillRepository implements BillRepositoryInterface
|
|||||||
$journal->save();
|
$journal->save();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
Log::debug('Wordmatch: ' . (($wordMatch) ? 'true' : 'false') . ' AmountMatch: ' . (($amountMatch) ? 'true' : 'false'));
|
||||||
}
|
}
|
||||||
if ($bill->id == $journal->bill_id) {
|
if ($bill->id == $journal->bill_id) {
|
||||||
// if no match, but bill used to match, remove it:
|
// if no match, but bill used to match, remove it:
|
||||||
|
Reference in New Issue
Block a user