FF3 will now correctly store exchanged / foreign amounts.

This commit is contained in:
James Cole
2017-04-14 11:19:09 +02:00
parent 9a69ce309e
commit 7e31a29b12
4 changed files with 38 additions and 9 deletions

View File

@@ -92,7 +92,7 @@ class AccountController extends Controller
$request->session()->flash('gaEventCategory', 'accounts');
$request->session()->flash('gaEventAction', 'create-' . $what);
return view('accounts.create', compact('subTitleIcon', 'what', 'subTitle', 'currencySelectList','allCurrencies', 'roles'));
return view('accounts.create', compact('subTitleIcon', 'what', 'subTitle', 'currencySelectList', 'allCurrencies', 'roles'));
}

View File

@@ -67,6 +67,9 @@ class JournalFormRequest extends Request
'destination_account_name' => $this->string('destination_account_name'),
'piggy_bank_id' => $this->integer('piggy_bank_id'),
// amount for exchanged data:
'exchanged_amount' => $this->float('exchanged_amount'),
];
return $data;