mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
Fix transfers and form currencies (#1477)
This commit is contained in:
parent
fcb95207d7
commit
81d604f3d4
11 changed files with 41 additions and 19 deletions
|
@ -16,8 +16,7 @@ class Account::TransfersController < ApplicationController
|
|||
|
||||
@transfer = Account::Transfer.build_from_accounts from_account, to_account, \
|
||||
date: transfer_params[:date],
|
||||
amount: transfer_params[:amount].to_d,
|
||||
currency: transfer_params[:currency]
|
||||
amount: transfer_params[:amount].to_d
|
||||
|
||||
if @transfer.save
|
||||
@transfer.entries.each(&:sync_account_later)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue