Open-source personal finance manager. Self-hosted, privacy-first.
Feat/explicit destination amount (#536)
Matheus Palmeira Leite Rocha576fed6e82ee
diff --git a/backend/alembic/versions/067_transfer_amount_explicit.py b/backend/alembic/versions/067_transfer_amount_explicit.pynew file mode 100644index 00000000..88b39ffd--- /dev/null+++ b/backend/alembic/versions/067_transfer_amount_explicit.py@@ -0,0 +1,40 @@+"""flag transfers whose destination amount was entered by the user (issue #529)++Revision ID: 067+Revises: 066+Create Date: 2026-08-12++A cross-currency transfer can be created either by converting the source amount+at the market rate or by typing the amount that actually landed on the+destination account. In the second case both amounts are observed facts, so+editing one leg must not silently re-derive the other from an FX rate.++Additive, NOT NULL with a server default of false: existing rows keep the old+behaviour (amounts were derived, so they may be re-derived), and the column is+only ever true for pairs created with an explicit destination amount.+"""+from typing import Sequence, Union++import sqlalchemy as sa+from alembic import op++revision: str = "067"+down_revision: Union[str, None] = "066"+branch_labels: Union[str, Sequence[str], None] = None+depends_on: Union[str, Sequence[str], None] = None+++def upgrade() -> None:+ op.add_column(+ "transactions",+ sa.Column(+ "transfer_amount_explicit",+ sa.Boolean(),+ nullable=False,+ server_default=sa.false(),+ ),+ )+++def downgrade() -> None:+ op.drop_column("transactions", "transfer_amount_explicit")diff --git a/backend/app/models/transaction.py b/backend/app/models/transaction.pyindex 396d38d0..2e39b8eb 100644--- a/backend/app/models/transaction.py+++ b/backend/app/models/transaction.py@@ -49,6 +49,13 @@ class Transaction(Base):raw_data: Mapped[Optional[dict]] = mapped_column(JSON, nullable=True)import_id: Mapped[Optional[uuid.UUID]] = mapped_column(UUID(as_uuid=True), ForeignKey("import_logs.id"), nullable=True)transfer_pair_id: Mapped[Optional[uuid.UUID]] = mapped_column(UUID(as_uuid=True), nullable=True)+ # True on both legs of a cross-currency transfer whose destination amount+ # the user typed in, instead of letting it be converted at the market rate.+ # Both amounts are then observed facts, so editing one leg must not+ # re-derive the other from an FX rate.+ transfer_amount_explicit: Mapped[bool] = mapped_column(+ Boolean, default=False, server_default="false"+ )amount_primary: Mapped[Optional[Decimal]] = mapped_column(Numeric(precision=15, scale=2), nullable=True)fx_rate_used: Mapped[Optional[Decimal]] = mapped_column(Numeric(precision=20, scale=10), nullable=True)# Installment (parcelamento) metadata. Populated from provider data when available.diff --git a/backend/app/schemas/transaction.py b/backend/app/schemas/transaction.pyindex 920e746a..f6bf5d34 100644--- a/backend/app/schemas/transaction.py+++ b/backend/app/schemas/transaction.py@@ -137,13 +137,22 @@ class BulkAddToGroupRequest(BaseModel):class TransferCreate(BaseModel):+ # `extra="forbid"` so the removed `fx_rate` field fails loudly instead of+ # being dropped silently: a client still sending a rate would otherwise get+ # a transfer converted at the market rate without any hint that its input+ # was ignored.+ model_config = ConfigDict(extra="forbid")+from_account_id: uuid.UUIDto_account_id: uuid.UUIDamount: Decimal+ # Amount that actually landed on the destination account, for+ # cross-currency transfers. Left blank, the destination is converted at the+ # market rate for `date`.+ destination_amount: Optional[Decimal] = Field(default=None, gt=0)date: _Datedescription: strnotes: Optional[str] = None- fx_rate: Optional[Decimal] = Noneclass LinkTransferRequest(BaseModel):diff --git a/backend/app/services/transaction_service.py b/backend/app/services/transaction_service.pyindex 2fc47b86..13084f07 100644--- a/backend/app/services/transaction_service.py+++ b/backend/app/services/transaction_service.py@@ -775,8 +775,29 @@ async def create_transfer(if not to_account:raise ValueError("Destination account not found")+ is_cross_currency = from_account.currency != to_account.currency+ if (+ not is_cross_currency+ and data.destination_amount is not None+ ):+ raise ValueError(+ "Destination amount must be absent for same-currency transfers."+ )+transfer_pair_id = uuid.uuid4()- from decimal import Decimal+ from decimal import Decimal, ROUND_HALF_UP++ def _to_cents(value) -> Decimal:+ """Round to the 2 decimals both amount columns store.++ Without this the response would echo back a precision the database+ never kept, and `amount_primary`/`fx_rate_used` would be derived from+ an amount that isn't the one on the row.+ """+ return Decimal(str(value)).quantize(Decimal("0.01"), rounding=ROUND_HALF_UP)++ debit_amount = _to_cents(data.amount)+ amount_is_explicit = data.destination_amount is not None# Debit transaction (from account)debit_tx = Transaction(@@ -784,31 +805,28 @@ async def create_transfer(workspace_id=workspace_id,account_id=data.from_account_id,description=data.description,- amount=data.amount,+ amount=debit_amount,currency=from_account.currency,date=data.date,type="debit",source="transfer",notes=data.notes,transfer_pair_id=transfer_pair_id,+ transfer_amount_explicit=amount_is_explicit,)apply_effective_date(debit_tx, from_account)session.add(debit_tx)# Credit transaction (to account) — convert if cross-currency- if from_account.currency != to_account.currency:- if data.fx_rate is not None:- from decimal import ROUND_HALF_UP- credit_amount = (Decimal(str(data.amount)) * Decimal(str(data.fx_rate))).quantize(- Decimal("0.01"), rounding=ROUND_HALF_UP- )+ if is_cross_currency:+ if data.destination_amount is not None:+ credit_amount = _to_cents(data.destination_amount)else:- converted_amount, _ = await fx_convert(- session, Decimal(str(data.amount)), from_account.currency, to_account.currency, data.date+ credit_amount, _ = await fx_convert(+ session, debit_amount, from_account.currency, to_account.currency, data.date)- credit_amount = converted_amountelse:- credit_amount = data.amount+ credit_amount = debit_amountcredit_tx = Transaction(user_id=user_id,@@ -822,6 +840,7 @@ async def create_transfer(source="transfer",notes=data.notes,transfer_pair_id=transfer_pair_id,+ transfer_amount_explicit=amount_is_explicit,)apply_effective_date(credit_tx, to_account)session.add(credit_tx)@@ -1256,8 +1275,15 @@ async def update_transaction(if paired_tx:if should_cascade_category:paired_tx.category_id = transaction.category_id+ # When the user typed both amounts, neither is a conversion of the+ # other: correcting one leg leaves the amount that actually landed+ # on the other account untouched. Re-converting here would throw+ # away the number the user entered (issue #529).+ keeps_own_amount = transaction.transfer_amount_explicit or paired_tx.transfer_amount_explicitfor key in cascade_fields & update_data.keys():if key == "amount" and paired_tx.currency != transaction.currency:+ if keeps_own_amount:+ continuefrom decimal import Decimalconverted, _ = await fx_convert(session, Decimal(str(transaction.amount)),diff --git a/backend/tests/test_transaction_service.py b/backend/tests/test_transaction_service.pyindex e8103393..5ffc0473 100644--- a/backend/tests/test_transaction_service.py+++ b/backend/tests/test_transaction_service.py@@ -956,7 +956,7 @@ async def test_create_transfer_cross_currency(description="Cross-currency",amount=Decimal("500"),date=date.today(),- fx_rate=Decimal("0.2"),+ destination_amount=Decimal("100.00"),)debit_tx, credit_tx = await create_transfer(session, test_workspace.id, test_user.id, data)assert debit_tx.currency == "BRL"diff --git a/backend/tests/test_transaction_service_coverage.py b/backend/tests/test_transaction_service_coverage.pyindex e70a9225..17282562 100644--- a/backend/tests/test_transaction_service_coverage.py+++ b/backend/tests/test_transaction_service_coverage.py@@ -712,9 +712,11 @@ async def test_create_transaction_with_splits(session, test_user, test_workspaceasync def test_update_transfer_cascades_amount_cross_currency(session, test_user, test_workspace, acct, acct_usd):debit, credit = await create_transfer(session, test_workspace.id, test_user.id, TransferCreate(from_account_id=acct.id, to_account_id=acct_usd.id,- description="XC", amount=Decimal("500"), date=date.today(), fx_rate=Decimal("0.2"),+ description="XC", amount=Decimal("500"), date=date.today(),))- # Change amount on debit side; cascade should re-convert for the credit side.+ # No destination amount was given, so the credit side is a conversion of the+ # debit side: changing the debit amount re-converts it. (A pair created with+ # an explicit destination amount keeps it — see test_transfer_api.py.)updated = await update_transaction(session, debit.id, test_workspace.id, test_user.id,TransactionUpdate(amount=Decimal("1000")),diff --git a/backend/tests/test_transfer_api.py b/backend/tests/test_transfer_api.pyindex 77cdab92..2b2426a8 100644--- a/backend/tests/test_transfer_api.py+++ b/backend/tests/test_transfer_api.py@@ -118,10 +118,10 @@ async def test_create_cross_currency_transfer(@pytest.mark.asyncio-async def test_create_cross_currency_transfer_with_manual_fx_rate(+async def test_create_cross_currency_transfer_with_explicit_destination_amount(client: AsyncClient, auth_headers, test_account: Account, usd_account: Account):- """Cross-currency transfer with manual FX rate should use provided rate."""+ """Cross-currency transfer should preserve an explicitly supplied destination amount."""response = await client.post("/api/transactions/transfer",json={@@ -129,8 +129,8 @@ async def test_create_cross_currency_transfer_with_manual_fx_rate("to_account_id": str(usd_account.id),"amount": 1000.00,"date": date.today().isoformat(),- "description": "Transfer BRL to USD with manual rate",- "fx_rate": 0.20,+ "description": "Transfer BRL to USD with explicit destination amount",+ "destination_amount": 200.00,},headers=auth_headers,)@@ -140,10 +140,171 @@ async def test_create_cross_currency_transfer_with_manual_fx_rate(assert data["debit"]["currency"] == "BRL"assert data["credit"]["currency"] == "USD"assert float(data["debit"]["amount"]) == 1000.00- # 1000 * 0.20 = 200.00assert float(data["credit"]["amount"]) == 200.00[email protected]("destination_amount", [0, -1])+async def test_reject_non_positive_destination_amount(+ client: AsyncClient,+ auth_headers,+ test_account: Account,+ usd_account: Account,+ destination_amount: int,+):+ response = await client.post(+ "/api/transactions/transfer",+ json={+ "from_account_id": str(test_account.id),+ "to_account_id": str(usd_account.id),+ "amount": 1000.00,+ "destination_amount": destination_amount,+ "date": date.today().isoformat(),+ "description": "Invalid destination amount",+ },+ headers=auth_headers,+ )++ assert response.status_code == 422+++async def test_reject_destination_amount_for_same_currency_transfer(+ client: AsyncClient,+ auth_headers,+ test_account: Account,+ second_account: Account,+):+ response = await client.post(+ "/api/transactions/transfer",+ json={+ "from_account_id": str(test_account.id),+ "to_account_id": str(second_account.id),+ "amount": 100.00,+ "destination_amount": 100.00,+ "date": date.today().isoformat(),+ "description": "Invalid same-currency transfer",+ },+ headers=auth_headers,+ )++ assert response.status_code == 400+ assert "destination amount" in response.json()["detail"].lower()+++async def test_destination_amount_is_rounded_to_cents(+ client: AsyncClient, auth_headers, test_account: Account, usd_account: Account+):+ """Amounts are stored with 2 decimals, so the response must not echo more."""+ response = await client.post(+ "/api/transactions/transfer",+ json={+ "from_account_id": str(test_account.id),+ "to_account_id": str(usd_account.id),+ "amount": 1000.00,+ "destination_amount": 200.999,+ "date": date.today().isoformat(),+ "description": "Transfer with sub-cent destination amount",+ },+ headers=auth_headers,+ )++ assert response.status_code == 201+ data = response.json()+ assert Decimal(str(data["credit"]["amount"])) == Decimal("201.00")+++async def test_reject_removed_fx_rate_field(+ client: AsyncClient, auth_headers, test_account: Account, usd_account: Account+):+ """A client still sending the old `fx_rate` must fail loudly, not be ignored."""+ response = await client.post(+ "/api/transactions/transfer",+ json={+ "from_account_id": str(test_account.id),+ "to_account_id": str(usd_account.id),+ "amount": 1000.00,+ "fx_rate": 0.20,+ "date": date.today().isoformat(),+ "description": "Transfer with legacy fx_rate",+ },+ headers=auth_headers,+ )++ assert response.status_code == 422+++async def test_explicit_destination_amount_survives_source_amount_edit(+ client: AsyncClient, auth_headers, test_account: Account, usd_account: Account+):+ """Both amounts were entered by the user, so editing one must not re-convert the other."""+ response = await client.post(+ "/api/transactions/transfer",+ json={+ "from_account_id": str(test_account.id),+ "to_account_id": str(usd_account.id),+ "amount": 1000.00,+ "destination_amount": 200.00,+ "date": date.today().isoformat(),+ "description": "Transfer with explicit destination amount",+ },+ headers=auth_headers,+ )+ assert response.status_code == 201+ data = response.json()++ update_response = await client.patch(+ f"/api/transactions/{data['debit']['id']}",+ json={"amount": 1010.00},+ headers=auth_headers,+ )+ assert update_response.status_code == 200+ assert Decimal(str(update_response.json()["amount"])) == Decimal("1010.00")++ credit_response = await client.get(+ f"/api/transactions/{data['credit']['id']}", headers=auth_headers+ )+ assert credit_response.status_code == 200+ assert Decimal(str(credit_response.json()["amount"])) == Decimal("200.00")+++async def test_converted_destination_amount_follows_source_amount_edit(+ client: AsyncClient, auth_headers, test_account: Account, usd_account: Account+):+ """Without an explicit destination amount the pair is still kept in sync by FX."""+ response = await client.post(+ "/api/transactions/transfer",+ json={+ "from_account_id": str(test_account.id),+ "to_account_id": str(usd_account.id),+ "amount": 1000.00,+ "date": date.today().isoformat(),+ "description": "Transfer converted automatically",+ },+ headers=auth_headers,+ )+ assert response.status_code == 201+ data = response.json()+ original_credit = Decimal(str(data["credit"]["amount"]))++ update_response = await client.patch(+ f"/api/transactions/{data['debit']['id']}",+ json={"amount": 2000.00},+ headers=auth_headers,+ )+ assert update_response.status_code == 200++ credit_response = await client.get(+ f"/api/transactions/{data['credit']['id']}", headers=auth_headers+ )+ assert credit_response.status_code == 200+ assert Decimal(str(credit_response.json()["amount"])) == original_credit * 2++@pytest.mark.asyncioasync def test_reject_same_account_transfer(client: AsyncClient, auth_headers, test_account: Accountdiff --git a/frontend/src/components/transfer-dialog.tsx b/frontend/src/components/transfer-dialog.tsxindex f5066a4a..f550cefa 100644--- a/frontend/src/components/transfer-dialog.tsx+++ b/frontend/src/components/transfer-dialog.tsx@@ -34,7 +34,7 @@ export function TransferDialog({date: stringdescription: stringnotes?: string- fx_rate?: number+ destination_amount?: number}) => voidloading: booleandefaultFromAccountId?: string@@ -46,8 +46,7 @@ export function TransferDialog({const [date, setDate] = useState(localDateString)const [description, setDescription] = useState('')const [notes, setNotes] = useState('')- const [fxRate, setFxRate] = useState('')- const [convertedAmount, setConvertedAmount] = useState('')+ const [destinationAmount, setDestinationAmount] = useState('')// Reset form when dialog opensconst resetForm = useCallback(() => {@@ -57,8 +56,7 @@ export function TransferDialog({setDate(localDateString())setDescription('')setNotes('')- setFxRate('')- setConvertedAmount('')+ setDestinationAmount('')}, [defaultFromAccountId, accounts])useEffect(() => {@@ -72,34 +70,6 @@ export function TransferDialog({const availableToAccounts = accounts.filter((a) => a.id !== fromAccountId)- // Sync fx_rate <-> converted amount when one changes- const handleFxRateChange = (val: string) => {- setFxRate(val)- if (val && amount) {- setConvertedAmount((parseFloat(amount) * parseFloat(val)).toFixed(2))- } else {- setConvertedAmount('')- }- }-- const handleConvertedAmountChange = (val: string) => {- setConvertedAmount(val)- if (val && amount && parseFloat(amount) > 0) {- setFxRate((parseFloat(val) / parseFloat(amount)).toFixed(6))- } else {- setFxRate('')- }- }-- const handleAmountChange = (val: string) => {- setAmount(val)- if (fxRate && val) {- setConvertedAmount((parseFloat(val) * parseFloat(fxRate)).toFixed(2))- } else if (convertedAmount && val && parseFloat(val) > 0) {- setFxRate((parseFloat(convertedAmount) / parseFloat(val)).toFixed(6))- }- }-return (<Dialog open={open} onOpenChange={onClose}><DialogContent className="sm:max-w-lg">@@ -116,7 +86,9 @@ export function TransferDialog({date,description,notes: notes.trim() || undefined,- fx_rate: isCrossCurrency && fxRate ? parseFloat(fxRate) : undefined,+ destination_amount: isCrossCurrency && destinationAmount+ ? parseFloat(destinationAmount)+ : undefined,})}}className="space-y-4"@@ -130,8 +102,7 @@ export function TransferDialog({onChange={(e) => {setFromAccountId(e.target.value)if (e.target.value === toAccountId) setToAccountId('')- setFxRate('')- setConvertedAmount('')+ setDestinationAmount('')}}required>@@ -153,8 +124,7 @@ export function TransferDialog({value={toAccountId}onChange={(e) => {setToAccountId(e.target.value)- setFxRate('')- setConvertedAmount('')+ setDestinationAmount('')}}required>@@ -192,7 +162,7 @@ export function TransferDialog({step="0.01"min="0.01"value={amount}- onChange={(e) => handleAmountChange(e.target.value)}+ onChange={(e) => setAmount(e.target.value)}required/></div>@@ -207,37 +177,18 @@ export function TransferDialog({</div>{isCrossCurrency && (- <div className="space-y-3 p-3 bg-muted/50 border border-border rounded-md">- <p className="text-xs font-medium text-muted-foreground">- {t('transactions.conversion')}{' '}- <span className="font-normal">({t('transactions.conversionHint')})</span>- </p>- <div className="grid grid-cols-2 gap-4">- <div className="space-y-2">- <Label className="text-xs">- {t('transactions.convertedAmount', { currency: toAccount?.currency })}- </Label>- <Input- type="number"- step="0.01"- min="0"- value={convertedAmount}- onChange={(e) => handleConvertedAmountChange(e.target.value)}- placeholder={t('transactions.autoCalculated')}- />- </div>- <div className="space-y-2">- <Label className="text-xs">{t('transactions.exchangeRate')}</Label>- <Input- type="number"- step="0.000001"- min="0"- value={fxRate}- onChange={(e) => handleFxRateChange(e.target.value)}- placeholder={t('transactions.autoCalculated')}- />- </div>- </div>+ <div className="space-y-2 p-3 bg-muted/50 border border-border rounded-md">+ <Label className="text-xs">+ {t('transactions.convertedAmount', { currency: toAccount?.currency })}+ </Label>+ <Input+ type="number"+ step="0.01"+ min="0.01"+ value={destinationAmount}+ onChange={(e) => setDestinationAmount(e.target.value)}+ placeholder={t('transactions.autoCalculated')}+ /></div>)}diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.tsindex 5679bbaa..f91d0c19 100644--- a/frontend/src/lib/api.ts+++ b/frontend/src/lib/api.ts@@ -498,7 +498,7 @@ export const transactions = {date: stringdescription: stringnotes?: string- fx_rate?: number+ destination_amount?: number}): Promise<{ debit: Transaction; credit: Transaction; transfer_pair_id: string }> => {const { data } = await api.post('/transactions/transfer', transfer)return datadiff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.jsonindex 6339f187..bca9fa34 100644--- a/frontend/src/locales/de.json+++ b/frontend/src/locales/de.json@@ -417,7 +417,7 @@"transferFromAccount": "Vom Konto","transferToAccount": "Auf das Konto","transferAmount": "Betrag",- "transferCrossCurrency": "Währungen unterscheiden sich — Betrag wird automatisch umgerechnet",+ "transferCrossCurrency": "Währungen unterscheiden sich — Zielbetrag eingeben oder für automatische Umrechnung leer lassen","transferSameAccount": "Quell- und Zielkonto müssen unterschiedlich sein","transferDescription": "Beschreibung","transferNotes": "Notizen",@@ -1754,4 +1754,4 @@}}}-}\ No newline at end of file+}diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.jsonindex 3da348d1..c238eab3 100644--- a/frontend/src/locales/en.json+++ b/frontend/src/locales/en.json@@ -417,7 +417,7 @@"transferFromAccount": "From account","transferToAccount": "To account","transferAmount": "Amount",- "transferCrossCurrency": "Currencies differ — amount will be converted automatically",+ "transferCrossCurrency": "Currencies differ — enter the destination amount or leave it blank to convert automatically","transferSameAccount": "Source and destination must be different","transferDescription": "Description","transferNotes": "Notes",diff --git a/frontend/src/locales/es.json b/frontend/src/locales/es.jsonindex 42d7ff9c..4db7c019 100644--- a/frontend/src/locales/es.json+++ b/frontend/src/locales/es.json@@ -414,7 +414,7 @@"transferFromAccount": "Cuenta origen","transferToAccount": "Cuenta destino","transferAmount": "Importe",- "transferCrossCurrency": "Las monedas difieren — el importe se convertirá automáticamente",+ "transferCrossCurrency": "Las monedas difieren — introduce el importe de destino o déjalo vacío para convertir automáticamente","transferSameAccount": "La cuenta origen y destino deben ser diferentes","transferDescription": "Descripción","transferNotes": "Notas",@@ -1754,4 +1754,4 @@}}}-}\ No newline at end of file+}diff --git a/frontend/src/locales/fr.json b/frontend/src/locales/fr.jsonindex 434f96cf..a5c60cce 100644--- a/frontend/src/locales/fr.json+++ b/frontend/src/locales/fr.json@@ -417,7 +417,7 @@"transferFromAccount": "Depuis le compte","transferToAccount": "Vers le compte","transferAmount": "Montant",- "transferCrossCurrency": "Les devises diffèrent — le montant sera converti automatiquement",+ "transferCrossCurrency": "Les devises diffèrent — saisissez le montant de destination ou laissez vide pour convertir automatiquement","transferSameAccount": "La source et la destination doivent être différentes","transferDescription": "Description","transferNotes": "Notes",@@ -1754,4 +1754,4 @@}}}-}\ No newline at end of file+}diff --git a/frontend/src/locales/it.json b/frontend/src/locales/it.jsonindex 9f0c8c5f..c5c6b672 100644--- a/frontend/src/locales/it.json+++ b/frontend/src/locales/it.json@@ -414,7 +414,7 @@"transferFromAccount": "Conto di origine","transferToAccount": "Conto di destinazione","transferAmount": "Importo",- "transferCrossCurrency": "Le valute differiscono — l'importo verrà convertito automaticamente",+ "transferCrossCurrency": "Le valute differiscono — inserisci l'importo di destinazione o lascia vuoto per convertire automaticamente","transferSameAccount": "Origine e destinazione devono essere diverse","transferDescription": "Descrizione","transferNotes": "Note",@@ -1754,4 +1754,4 @@}}}-}\ No newline at end of file+}diff --git a/frontend/src/locales/pl.json b/frontend/src/locales/pl.jsonindex 33e3135e..35151d10 100644--- a/frontend/src/locales/pl.json+++ b/frontend/src/locales/pl.json@@ -441,7 +441,7 @@"transferFromAccount": "Z konta","transferToAccount": "Na konto","transferAmount": "Kwota",- "transferCrossCurrency": "Waluty się różnią — kwota zostanie przeliczona automatycznie",+ "transferCrossCurrency": "Waluty się różnią — podaj kwotę docelową lub pozostaw puste pole, aby przeliczyć automatycznie","transferSameAccount": "Źródło i cel muszą być różne","transferDescription": "Opis","transferNotes": "Notatki",@@ -1850,4 +1850,4 @@}}}-}\ No newline at end of file+}diff --git a/frontend/src/locales/pt-BR.json b/frontend/src/locales/pt-BR.jsonindex 059272cf..ebed7c51 100644--- a/frontend/src/locales/pt-BR.json+++ b/frontend/src/locales/pt-BR.json@@ -414,7 +414,7 @@"transferFromAccount": "Conta de origem","transferToAccount": "Conta de destino","transferAmount": "Valor",- "transferCrossCurrency": "Moedas diferentes — o valor será convertido automaticamente",+ "transferCrossCurrency": "Moedas diferentes — informe o valor de destino ou deixe em branco para converter automaticamente","transferSameAccount": "Origem e destino devem ser diferentes","transferDescription": "Descrição","transferNotes": "Notas",@@ -1754,4 +1754,4 @@}}}-}\ No newline at end of file+}diff --git a/frontend/src/locales/pt-PT.json b/frontend/src/locales/pt-PT.jsonindex 61f2bd8c..e601cdde 100644--- a/frontend/src/locales/pt-PT.json+++ b/frontend/src/locales/pt-PT.json@@ -414,7 +414,7 @@"transferFromAccount": "Conta de origem","transferToAccount": "Conta de destino","transferAmount": "Valor",- "transferCrossCurrency": "Moedas diferentes — o valor será convertido automaticamente",+ "transferCrossCurrency": "Moedas diferentes — introduza o valor de destino ou deixe em branco para converter automaticamente","transferSameAccount": "Origem e destino devem ser diferentes","transferDescription": "Descrição","transferNotes": "Notas",@@ -1754,4 +1754,4 @@}}}-}\ No newline at end of file+}diff --git a/frontend/src/locales/ru.json b/frontend/src/locales/ru.jsonindex bf2925f7..da014fe5 100644--- a/frontend/src/locales/ru.json+++ b/frontend/src/locales/ru.json@@ -423,7 +423,7 @@"transferFromAccount": "Со счета","transferToAccount": "На счёт","transferAmount": "Сумма",- "transferCrossCurrency": "Валюты различаются — сумма будет сконвертирована автоматически",+ "transferCrossCurrency": "Валюты различаются — укажите сумму назначения или оставьте поле пустым для автоматической конвертации","transferSameAccount": "Источник и назначение должны различаться","transferDescription": "Описание","transferNotes": "Примечания",@@ -1760,4 +1760,4 @@}}}-}\ No newline at end of file+}diff --git a/frontend/src/locales/uk.json b/frontend/src/locales/uk.jsonindex efb863e4..393d27fc 100644--- a/frontend/src/locales/uk.json+++ b/frontend/src/locales/uk.json@@ -423,7 +423,7 @@"transferFromAccount": "З рахунку","transferToAccount": "На рахунок","transferAmount": "Сума",- "transferCrossCurrency": "Валюти різняться — суму буде сконвертовано автоматично",+ "transferCrossCurrency": "Валюти різняться — вкажіть суму призначення або залиште поле порожнім для автоматичної конвертації","transferSameAccount": "Джерело та призначення мають різнитися","transferDescription": "Опис","transferNotes": "Примітки",@@ -1760,4 +1760,4 @@}}}-}\ No newline at end of file+}diff --git a/frontend/src/pages/account-detail.tsx b/frontend/src/pages/account-detail.tsxindex 8a9e7d0e..1f2a3e6e 100644--- a/frontend/src/pages/account-detail.tsx+++ b/frontend/src/pages/account-detail.tsx@@ -603,7 +603,7 @@ export default function AccountDetailPage() {date: stringdescription: stringnotes?: string- fx_rate?: number+ destination_amount?: number}) => transactions.createTransfer(data),onSuccess: () => {invalidateFinancialQueries(queryClient)diff --git a/frontend/src/pages/transactions.tsx b/frontend/src/pages/transactions.tsxindex 0b63925d..22b9f4ff 100644--- a/frontend/src/pages/transactions.tsx+++ b/frontend/src/pages/transactions.tsx@@ -664,7 +664,7 @@ export default function TransactionsPage() {date: stringdescription: stringnotes?: string- fx_rate?: number+ destination_amount?: number}) => transactions.createTransfer(data),onSuccess: () => {invalidateAfterTxMutation()