mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Lots of new code and first submission thing.
This commit is contained in:
@@ -58,19 +58,17 @@ class CreateController extends Controller
|
||||
/**
|
||||
* Create a new transaction group.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param string|null objectType
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
*/
|
||||
public function create(Request $request, string $objectType = null)
|
||||
public function create()
|
||||
{
|
||||
$objectType = strtolower($objectType ?? TransactionType::WITHDRAWAL);
|
||||
$objectType = TransactionType::WITHDRAWAL;
|
||||
$preFilled = session()->has('preFilled') ? session('preFilled') : [];
|
||||
$subTitle = (string)trans('breadcrumbs.create_new_transaction');
|
||||
$subTitleIcon = 'fa-plus';
|
||||
$optionalFields = app('preferences')->get('transaction_journal_optional_fields', [])->data;
|
||||
$source = (int)$request->get('source');
|
||||
$allowedOpposingTypes = config('firefly.allowed_opposing_types');
|
||||
$accountToTypes = config('firefly.account_to_transaction');
|
||||
$defaultCurrency = app('amount')->getDefaultCurrency();
|
||||
@@ -88,4 +86,11 @@ class CreateController extends Controller
|
||||
);
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
echo '<pre>';
|
||||
print_r($request->all());
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user