mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	Fixed a bug in editing an opening balance
This commit is contained in:
		| @@ -251,12 +251,10 @@ class AccountController extends Controller | |||||||
|             'virtualBalance'         => round($request->input('virtualBalance'), 2), |             'virtualBalance'         => round($request->input('virtualBalance'), 2), | ||||||
|             'openingBalance'         => round($request->input('openingBalance'), 2), |             'openingBalance'         => round($request->input('openingBalance'), 2), | ||||||
|             'openingBalanceDate'     => new Carbon((string)$request->input('openingBalanceDate')), |             'openingBalanceDate'     => new Carbon((string)$request->input('openingBalanceDate')), | ||||||
|             'openingBalanceCurrency' => intval($request->input('balance_currency_id')), |             'openingBalanceCurrency' => intval($request->input('amount_currency_id_openingBalance')), | ||||||
|             'ccType'                 => $request->input('ccType'), |             'ccType'                 => $request->input('ccType'), | ||||||
|             'ccMonthlyPaymentDate'   => $request->input('ccMonthlyPaymentDate'), |             'ccMonthlyPaymentDate'   => $request->input('ccMonthlyPaymentDate'), | ||||||
|         ]; |         ]; | ||||||
|  |  | ||||||
|  |  | ||||||
|         $repository->update($account, $accountData); |         $repository->update($account, $accountData); | ||||||
|  |  | ||||||
|         Session::flash('success', 'Account "' . $account->name . '" updated.'); |         Session::flash('success', 'Account "' . $account->name . '" updated.'); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user