Skip to content

Firefly III: a personal finances manager

Add source account to scan, see issue #226

James Coleed8b41e8ec65
diff --git a/app/Repositories/Bill/BillRepository.php b/app/Repositories/Bill/BillRepository.php
index dfb0c18675..089bc3e88f 100644
--- a/app/Repositories/Bill/BillRepository.php
+++ b/app/Repositories/Bill/BillRepository.php
@@ -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);