mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 07:34:43 +00:00
Expand budget box and clear some languages.
This commit is contained in:
@@ -32,7 +32,9 @@ use Response;
|
||||
class BoxController extends Controller
|
||||
{
|
||||
/**
|
||||
* @param BudgetRepositoryInterface $repository
|
||||
*
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function available(BudgetRepositoryInterface $repository)
|
||||
{
|
||||
@@ -61,7 +63,7 @@ class BoxController extends Controller
|
||||
if (bccomp($left, '0') === -1) {
|
||||
$left = '0';
|
||||
}
|
||||
$days = $today->diffInDays($end);
|
||||
$days = $today->diffInDays($end) + 1;
|
||||
$perDay = '0';
|
||||
if ($days !== 0) {
|
||||
$perDay = bcdiv($left, strval($days));
|
||||
|
Reference in New Issue
Block a user