This commit is contained in:
James Cole 2020-08-26 18:06:14 +02:00
parent 4e05ce4c35
commit 2f2a02834b
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 4 additions and 7 deletions

View File

@ -39,11 +39,8 @@ use Illuminate\View\View;
*/
class CreateController extends Controller
{
/** @var BudgetRepositoryInterface The budget repository */
private $repository;
/** @var AttachmentHelperInterface Helper for attachments. */
private $attachments;
private BudgetRepositoryInterface $repository;
private AttachmentHelperInterface $attachments;
/**
* CreateController constructor.

View File

@ -317,8 +317,8 @@ class BudgetRepository implements BudgetRepositoryInterface
[
'budget_id' => $newBudget->id,
'transaction_currency_id' => $autoBudget->transaction_currency_id,
'start_date' => $start->format('Y-m-d'),
'end_date' => $end->format('Y-m-d'),
'start_date' => $start,
'end_date' => $end,
'amount' => $autoBudget->amount,
]
);