This commit is contained in:
James Cole 2023-02-04 07:44:43 +01:00
parent 0eb0f7f35f
commit 74777a648c
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -297,7 +297,7 @@ class CreateAutoBudgetLimits implements ShouldQueue
Log::info(sprintf('The amount left is negative, so it will be reset to %s.', $totalAmount));
}
if (1 !== bccomp('0', $budgetLeft)) {
$totalAmount = bcadd($budgetLeft, $budgetLimit->amount);
$totalAmount = bcadd($budgetLeft, $totalAmount);
Log::info(sprintf('The amount left is positive, so the new amount will be %s.', $totalAmount));
}