mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Auto naming of Transfer Transaction (#1393)
* Remove Description field * Auto naming of tranfer transaction * Fix transfer test * Improve Transfer entries names
This commit is contained in:
parent
2b61821336
commit
47288a1629
5 changed files with 4 additions and 9 deletions
|
@ -14,8 +14,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],
|
||||
name: transfer_params[:name]
|
||||
currency: transfer_params[:currency]
|
||||
|
||||
if @transfer.save
|
||||
@transfer.entries.each(&:sync_account_later)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue