Add source account to scan, see issue #226

This commit is contained in:
James Cole 2016-03-29 15:24:40 +02:00
parent aada3371b7
commit ed8b41e8ec

View File

@ -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);