mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Fix currency when importing to foreign accounts (#762)
This commit is contained in:
parent
5fa34b4111
commit
34811d8fd8
3 changed files with 4 additions and 3 deletions
|
@ -115,7 +115,8 @@ class Import < ApplicationRecord
|
|||
name: row["name"] || "Imported transaction",
|
||||
date: Date.iso8601(row["date"]),
|
||||
category: category,
|
||||
amount: BigDecimal(row["amount"]) * -1 # User inputs amounts with opposite signage of our internal representation
|
||||
amount: BigDecimal(row["amount"]) * -1, # User inputs amounts with opposite signage of our internal representation
|
||||
currency: account.currency
|
||||
|
||||
transactions << txn
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue