mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-10 16:05:22 +02:00
Remove unused code
This commit is contained in:
parent
ec7882b09c
commit
af0a2b9e92
1 changed files with 0 additions and 14 deletions
|
@ -37,18 +37,4 @@ module EntriesHelper
|
|||
entry.name
|
||||
].join(" • ")
|
||||
end
|
||||
|
||||
# Helper method to derive transfer name without Transfer association
|
||||
def transfer_name_for_transaction(transaction)
|
||||
entry = transaction.entry
|
||||
|
||||
# For loan payments, use payment language
|
||||
if transaction.loan_payment?
|
||||
"Payment to #{entry.account.name}"
|
||||
# For other transfer types, use transfer language
|
||||
else
|
||||
# Default transfer name based on the account
|
||||
"Transfer involving #{entry.account.name}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue