mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Renamed the amount variable so it stops interfering with another variable
This commit is contained in:
parent
2ef7a01945
commit
06f2e34bb5
@ -79,8 +79,8 @@ class JsonController extends Controller
|
|||||||
if ($balance < 0) {
|
if ($balance < 0) {
|
||||||
// unpaid! create a fake bill that matches the amount.
|
// unpaid! create a fake bill that matches the amount.
|
||||||
$description = $creditCard->name;
|
$description = $creditCard->name;
|
||||||
$amount = $balance * -1;
|
$fakeAmount = $balance * -1;
|
||||||
$fakeBill = $repository->createFakeBill($description, $date, $amount);
|
$fakeBill = $repository->createFakeBill($description, $date, $fakeAmount);
|
||||||
$unpaid->push([$fakeBill, $date]);
|
$unpaid->push([$fakeBill, $date]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user