mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 17:31:09 -06:00
Add source account to scan, see issue #226
This commit is contained in:
parent
aada3371b7
commit
ed8b41e8ec
@ -464,6 +464,10 @@ class BillRepository implements BillRepositoryInterface
|
||||
|
||||
$matches = explode(',', $bill->match);
|
||||
$description = strtolower($journal->description) . ' ' . strtolower(TransactionJournal::destinationAccount($journal)->name);
|
||||
|
||||
// new: add source to word match:
|
||||
$description .= ' '.strtolower(TransactionJournal::sourceAccount($journal)->name);
|
||||
|
||||
$wordMatch = $this->doWordMatch($matches, $description);
|
||||
$amountMatch = $this->doAmountMatch(TransactionJournal::amountPositive($journal), $bill->amount_min, $bill->amount_max);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user