From 6a01a9bdfdaa404c1d985952a779dd0c3278435c Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 1 Oct 2015 07:48:50 +0200 Subject: [PATCH] Fix bill scan. --- app/Repositories/Bill/BillRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/Bill/BillRepository.php b/app/Repositories/Bill/BillRepository.php index 21a86f10c5..959e6ec8b5 100644 --- a/app/Repositories/Bill/BillRepository.php +++ b/app/Repositories/Bill/BillRepository.php @@ -276,7 +276,7 @@ class BillRepository implements BillRepositoryInterface $matches = explode(',', $bill->match); $description = strtolower($journal->description) . ' ' . strtolower($journal->destination_account->name); $wordMatch = $this->doWordMatch($matches, $description); - $amountMatch = $this->doAmountMatch($journal->amount, $bill->amount_min, $bill->amount_max); + $amountMatch = $this->doAmountMatch($journal->amount_positive, $bill->amount_min, $bill->amount_max); /* * If both, update!