Can now create auto budget over API

This commit is contained in:
James Cole
2020-03-14 07:30:55 +01:00
parent 309633069c
commit d1d11ae717
15 changed files with 183 additions and 47 deletions

View File

@@ -85,7 +85,7 @@ class AvailableBudgetController extends Controller
}
$left = bcadd($availableBudget->amount, (string)$spent);
// left less than zero? Set to zero.
if (bccomp($left, '0') === -1) {
if (-1 === bccomp($left, '0')) {
$left = '0';
}