diff --git a/app/Http/Controllers/JsonController.php b/app/Http/Controllers/JsonController.php index 7c59728f5b..effcee45e5 100644 --- a/app/Http/Controllers/JsonController.php +++ b/app/Http/Controllers/JsonController.php @@ -79,8 +79,8 @@ class JsonController extends Controller if ($balance < 0) { // unpaid! create a fake bill that matches the amount. $description = $creditCard->name; - $amount = $balance * -1; - $fakeBill = $repository->createFakeBill($description, $date, $amount); + $fakeAmount = $balance * -1; + $fakeBill = $repository->createFakeBill($description, $date, $fakeAmount); $unpaid->push([$fakeBill, $date]); } }