Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Renamed the amount variable so it stops interfering with another variable
James Cole06f2e34bb5ad
diff --git a/app/Http/Controllers/JsonController.php b/app/Http/Controllers/JsonController.phpindex 7c59728f5b..effcee45e5 100644--- a/app/Http/Controllers/JsonController.php+++ b/app/Http/Controllers/JsonController.php@@ -79,8 +79,8 @@ class JsonController extends Controllerif ($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]);}}