Open-source personal finance manager. Self-hosted, privacy-first.
fix(rules): sign transaction amounts in rule conditions (#1294)
Tássio Noronha119ba7fe8e90
diff --git a/backend/app/services/rule_engine.py b/backend/app/services/rule_engine.pyindex 4a816e02..cf785612 100644--- a/backend/app/services/rule_engine.py+++ b/backend/app/services/rule_engine.py@@ -41,6 +41,22 @@ def _to_decimal(val) -> Decimal:return Decimal("0")+def _signed_amount(tx: "Transaction", raw) -> Decimal:+ """The amount as a condition compares it: credits positive, debits negative.++ Amounts are stored positive with the direction in `type`, so an unsigned+ comparison sees every transaction as positive. The sign is what lets+ `amount > 0` select income and `amount < 0` expenses. The magnitude is+ taken first because a row saved with a negative amount (the manual API+ does not reject one) must follow the same contract: the sign comes from+ `type` alone.+ """+ amount = abs(_to_decimal(raw))+ if getattr(tx, "type", None) == "debit":+ amount = -amount+ return amount++def _to_date(val) -> date | None:if isinstance(val, datetime):return val.date()@@ -87,17 +103,20 @@ def _match_condition(condition: dict, tx: "Transaction") -> bool:# Amounts are stored with a fixed scale (100.00) while the rule# form submits the number as typed (100): comparing their string# forms would never agree. Compare numerically when both sides- # parse, and fall back to text when either does not.+ # parse, and fall back to text when either does not. The+ # comparison is signed: a debit of 100.00 is -100.if field == "amount":try:- return Decimal(str(tx_val)) == Decimal(str(value))+ return _signed_amount(tx, tx_val) == Decimal(str(value))except InvalidOperation:passreturn tx_str == val_strif op == "not_equals":+ # Signed for the same reason as `equals`: a debit of 100.00 is+ # -100, so it is not equal to the typed 100.if field == "amount":try:- return Decimal(str(tx_val)) != Decimal(str(value))+ return _signed_amount(tx, tx_val) != Decimal(str(value))except InvalidOperation:passreturn tx_str != val_str@@ -128,7 +147,10 @@ def _match_condition(condition: dict, tx: "Transaction") -> bool:if op == "lte":return tx_date <= val_date- tx_num = _to_decimal(tx_val)+ # Amounts are stored positive with the direction in `type`, so the+ # comparison needs the signed value: `amount > 0` is income and+ # `amount < 0` expenses.+ tx_num = _signed_amount(tx, tx_val) if field == "amount" else _to_decimal(tx_val)val_num = _to_decimal(value)if op == "gt":return tx_num > val_numdiff --git a/backend/mcp_server/tools/rules.py b/backend/mcp_server/tools/rules.pyindex 2b281c67..f252a782 100644--- a/backend/mcp_server/tools/rules.py+++ b/backend/mcp_server/tools/rules.py@@ -20,6 +20,8 @@ from mcp_server.tools.proposals import _APPLY_FIELD, _PROPOSAL_PREFACE, _can_app_RULE_CAPABILITIES = (" Conditions combine with AND/OR and filter description, payee, notes, ""amount, type, account_id, payee_id, date, or status (pending/posted). "+ "Amount is signed in comparisons: credits are positive, debits negative, "+ "so `amount > 0` selects income and `amount < 0` expenses. ""Actions can set category, payee, or description, append notes, or ignore ""the transaction.")diff --git a/backend/tests/test_new_rules_api.py b/backend/tests/test_new_rules_api.pyindex 8e171d39..a8c6535f 100644--- a/backend/tests/test_new_rules_api.py+++ b/backend/tests/test_new_rules_api.py@@ -1240,7 +1240,9 @@ async def test_preview_rule_pages_through_the_matches("""body = {"conditions_op": "and",- "conditions": [{"field": "amount", "op": "gt", "value": "0"}],+ # Amount conditions compare the signed value, so a floor below every+ # expense in the fixture is what matches debits and credits alike.+ "conditions": [{"field": "amount", "op": "gt", "value": "-100000"}],"actions": [{"op": "set_category", "value": str(test_categories[0].id)}],"limit": 2,}diff --git a/backend/tests/test_rule_engine.py b/backend/tests/test_rule_engine.pyindex 0528ded9..8be37ad6 100644--- a/backend/tests/test_rule_engine.py+++ b/backend/tests/test_rule_engine.py@@ -165,13 +165,13 @@ def test_safe_alternation_regex_remains_selective():def test_amount_lt():conditions = [{"field": "amount", "op": "lt", "value": 50}]- tx = make_tx(amount=Decimal("25.50"))+ tx = make_tx(type="credit", amount=Decimal("25.50"))assert evaluate_conditions("and", conditions, tx) is Truedef test_amount_gt_no_match():conditions = [{"field": "amount", "op": "gt", "value": 100}]- tx = make_tx(amount=Decimal("25.50"))+ tx = make_tx(type="credit", amount=Decimal("25.50"))assert evaluate_conditions("and", conditions, tx) is False@@ -319,40 +319,94 @@ def test_not_equals_same_value():def test_gte_equal():conditions = [{"field": "amount", "op": "gte", "value": 25.50}]- tx = make_tx(amount=Decimal("25.50"))+ tx = make_tx(type="credit", amount=Decimal("25.50"))assert evaluate_conditions("and", conditions, tx) is Truedef test_gte_greater():conditions = [{"field": "amount", "op": "gte", "value": 20}]- tx = make_tx(amount=Decimal("25.50"))+ tx = make_tx(type="credit", amount=Decimal("25.50"))assert evaluate_conditions("and", conditions, tx) is Truedef test_gte_less():conditions = [{"field": "amount", "op": "gte", "value": 30}]- tx = make_tx(amount=Decimal("25.50"))+ tx = make_tx(type="credit", amount=Decimal("25.50"))assert evaluate_conditions("and", conditions, tx) is Falsedef test_lte_equal():conditions = [{"field": "amount", "op": "lte", "value": 25.50}]- tx = make_tx(amount=Decimal("25.50"))+ tx = make_tx(type="credit", amount=Decimal("25.50"))assert evaluate_conditions("and", conditions, tx) is Truedef test_lte_less():conditions = [{"field": "amount", "op": "lte", "value": 30}]- tx = make_tx(amount=Decimal("25.50"))+ tx = make_tx(type="credit", amount=Decimal("25.50"))assert evaluate_conditions("and", conditions, tx) is Truedef test_lte_greater():conditions = [{"field": "amount", "op": "lte", "value": 20}]- tx = make_tx(amount=Decimal("25.50"))+ tx = make_tx(type="credit", amount=Decimal("25.50"))assert evaluate_conditions("and", conditions, tx) is False+# --- signed amount: debits are negative, credits positive (issue #981) ---+++def test_amount_gt_zero_matches_credits_only():+ conditions = [{"field": "amount", "op": "gt", "value": 0}]+ assert evaluate_conditions("and", conditions, make_tx(type="credit", amount=Decimal("100"))) is True+ assert evaluate_conditions("and", conditions, make_tx(type="debit", amount=Decimal("100"))) is False+++def test_amount_lt_zero_matches_debits_only():+ conditions = [{"field": "amount", "op": "lt", "value": 0}]+ assert evaluate_conditions("and", conditions, make_tx(type="debit", amount=Decimal("100"))) is True+ assert evaluate_conditions("and", conditions, make_tx(type="credit", amount=Decimal("100"))) is False+++def test_amount_negative_threshold_selects_large_expenses():+ conditions = [{"field": "amount", "op": "lte", "value": -50}]+ assert evaluate_conditions("and", conditions, make_tx(type="debit", amount=Decimal("75"))) is True+ assert evaluate_conditions("and", conditions, make_tx(type="debit", amount=Decimal("25"))) is False+ assert evaluate_conditions("and", conditions, make_tx(type="credit", amount=Decimal("75"))) is False+++def test_amount_positive_threshold_selects_large_income():+ conditions = [{"field": "amount", "op": "gte", "value": 1000}]+ assert evaluate_conditions("and", conditions, make_tx(type="credit", amount=Decimal("1200"))) is True+ assert evaluate_conditions("and", conditions, make_tx(type="debit", amount=Decimal("1200"))) is False+++def test_amount_equals_compares_numeric_and_signed():+ conditions = [{"field": "amount", "op": "equals", "value": "25.5"}]+ assert evaluate_conditions("and", conditions, make_tx(type="credit", amount=Decimal("25.50"))) is True+ assert evaluate_conditions("and", conditions, make_tx(type="debit", amount=Decimal("25.50"))) is False+ negative = [{"field": "amount", "op": "equals", "value": "-25.50"}]+ assert evaluate_conditions("and", negative, make_tx(type="debit", amount=Decimal("25.50"))) is True+++def test_amount_not_equals_signed():+ conditions = [{"field": "amount", "op": "not_equals", "value": "-25.50"}]+ assert evaluate_conditions("and", conditions, make_tx(type="debit", amount=Decimal("30"))) is True+ assert evaluate_conditions("and", conditions, make_tx(type="debit", amount=Decimal("25.50"))) is False+++def test_amount_sign_comes_from_type_even_when_stored_negative():+ # A row saved with an already-negative amount must not flip the sign twice.+ expense = make_tx(type="debit", amount=Decimal("-100"))+ income = make_tx(type="credit", amount=Decimal("-100"))+ gt_zero = [{"field": "amount", "op": "gt", "value": 0}]+ assert evaluate_conditions("and", gt_zero, expense) is False+ assert evaluate_conditions("and", gt_zero, income) is True+ equals = [{"field": "amount", "op": "equals", "value": "-100"}]+ assert evaluate_conditions("and", equals, expense) is True+ assert evaluate_conditions("and", equals, income) is False++def test_date_gt():conditions = [{"field": "date", "op": "gt", "value": "2026-02-09"}]tx = make_tx(date=date(2026, 2, 10))@@ -570,7 +624,7 @@ def test_blank_numeric_value_never_matches():def test_zero_value_still_matches():"""0 is a real value, not a blank one — it must keep working."""- tx = make_tx(amount=Decimal("25.50"))+ tx = make_tx(type="credit", amount=Decimal("25.50"))conditions = [{"field": "amount", "op": "gt", "value": 0}]assert evaluate_conditions("and", conditions, tx) is True@@ -632,10 +686,14 @@ def test_or_of_and_group():]assert evaluate_conditions("or", conditions, make_tx(description="IFOOD PEDIDO")) is Trueassert evaluate_conditions(- "or", conditions, make_tx(description="MERCADO X", amount=Decimal("250.00"))+ "or",+ conditions,+ make_tx(type="credit", description="MERCADO X", amount=Decimal("250.00")),) is Trueassert evaluate_conditions(- "or", conditions, make_tx(description="MERCADO X", amount=Decimal("30.00"))+ "or",+ conditions,+ make_tx(type="credit", description="MERCADO X", amount=Decimal("30.00")),) is False@@ -751,36 +809,38 @@ def test_an_empty_list_of_assignable_categories_blocks_every_categorization():## Amounts are stored at a fixed scale (100.00) while the rule form submits# the number as typed (100); a string comparison of the two forms never-# agrees, so equals on amount must compare numerically.+# agrees, so equals on amount must compare numerically. Since issue #981 the+# comparison is also signed, so the examples below pin the direction: a+# credit of 100.00 equals the typed 100.def test_equals_amount_different_scales():conditions = [{"field": "amount", "op": "equals", "value": "100"}]- tx = make_tx(amount=Decimal("100.00"))+ tx = make_tx(type="credit", amount=Decimal("100.00"))assert evaluate_conditions("and", conditions, tx) is Truedef test_equals_amount_value_with_trailing_zeros():conditions = [{"field": "amount", "op": "equals", "value": "25.50"}]- tx = make_tx(amount=Decimal("25.5"))+ tx = make_tx(type="credit", amount=Decimal("25.5"))assert evaluate_conditions("and", conditions, tx) is Truedef test_equals_amount_no_match():conditions = [{"field": "amount", "op": "equals", "value": "100.01"}]- tx = make_tx(amount=Decimal("100.00"))+ tx = make_tx(type="credit", amount=Decimal("100.00"))assert evaluate_conditions("and", conditions, tx) is Falsedef test_not_equals_amount_different_scales():conditions = [{"field": "amount", "op": "not_equals", "value": "100"}]- tx = make_tx(amount=Decimal("100.00"))+ tx = make_tx(type="credit", amount=Decimal("100.00"))assert evaluate_conditions("and", conditions, tx) is Falsedef test_not_equals_amount_no_match():conditions = [{"field": "amount", "op": "not_equals", "value": "100.01"}]- tx = make_tx(amount=Decimal("100.00"))+ tx = make_tx(type="credit", amount=Decimal("100.00"))assert evaluate_conditions("and", conditions, tx) is True@@ -788,5 +848,5 @@ def test_equals_amount_non_numeric_falls_back_to_text():# A value that is not a number keeps the old text comparison: it cannot# agree with a stored amount, which is what it did before the fix.conditions = [{"field": "amount", "op": "equals", "value": "abc"}]- tx = make_tx(amount=Decimal("100.00"))+ tx = make_tx(type="credit", amount=Decimal("100.00"))assert evaluate_conditions("and", conditions, tx) is Falsediff --git a/frontend/src/components/rule-dialog.tsx b/frontend/src/components/rule-dialog.tsxindex 4c986ad5..1cf63b21 100644--- a/frontend/src/components/rule-dialog.tsx+++ b/frontend/src/components/rule-dialog.tsx@@ -4,7 +4,7 @@ import { useInfiniteQuery } from '@tanstack/react-query'import { getAccountName, sortAccountsByDisplayName } from '@/lib/account-utils'import { isInvalidDescriptionAction, parseRulePriority, previewableActions } from '@/lib/rule-form-utils'import { rules as rulesApi } from '@/lib/api'-import { formatCurrency } from '@/lib/format'+import { formatSignedAmount } from '@/lib/format'import { useDisplayLocale, useDateLocale } from '@/hooks/use-display-locale'import { usePrivacyMode } from '@/hooks/use-privacy-mode'import { Input } from '@/components/ui/input'@@ -363,9 +363,9 @@ function RulePreviewPanel({</td><td className={cn('whitespace-nowrap py-1.5 pr-2 text-right tabular-nums',- item.will_change && item.type === 'credit' && 'text-emerald-600',+ item.will_change && (item.type === 'credit' ? 'text-emerald-600' : 'text-rose-500'),)}>- {mask(formatCurrency(Math.abs(item.amount), item.currency, locale))}+ {mask(formatSignedAmount(item.amount, item.type, item.currency, locale))}</td><td className="py-1.5">{item.will_change ? (@@ -464,6 +464,13 @@ export function RuleDialog({)const [previewOpen, setPreviewOpen] = useState(false)+ // Signed amounts are not obvious from a bare number box, so say it once,+ // right where the threshold is typed: income positive, expenses negative.+ const hasAmountCondition = useMemo(+ () => flattenConditions(conditions).some(c => c.field === 'amount'),+ [conditions],+ )+function updateCondition(i: number, field: keyof RuleCondition, val: string | number) {setConditions(prev => prev.map((node, idx) => (idx === i && !isConditionGroup(node) ? applyLeafChange(node, field, val) : node@@ -669,6 +676,9 @@ export function RuleDialog({<Plus size={12} /> {t('rules.addGroup')}</button></div>+ {hasAmountCondition && (+ <p className="text-xs text-muted-foreground">{t('rules.amountSignHint')}</p>+ )}</div></div>diff --git a/frontend/src/lib/format.test.ts b/frontend/src/lib/format.test.tsindex 541449d1..a2ae452e 100644--- a/frontend/src/lib/format.test.ts+++ b/frontend/src/lib/format.test.ts@@ -3,6 +3,7 @@ import { describe, expect, it } from 'vitest'import {formatAmountInput,formatCurrency,+ formatSignedAmount,parseAmountInput,resolveDateLocale,resolveDateOrder,@@ -170,6 +171,30 @@ describe('formatCurrency', () => {})})+describe('formatSignedAmount', () => {+ it('prefixes credits with + and debits with -', () => {+ expect(formatSignedAmount(100, 'credit', 'USD', 'en-US')).toBe('+$100.00')+ expect(formatSignedAmount(100, 'debit', 'USD', 'en-US')).toBe('-$100.00')+ })++ it('takes the sign from the type, not from a stored negative amount', () => {+ expect(formatSignedAmount(-100, 'debit', 'USD', 'en-US')).toBe('-$100.00')+ expect(formatSignedAmount(-100, 'credit', 'USD', 'en-US')).toBe('+$100.00')+ // any type other than debit counts as positive, like the rule engine+ expect(formatSignedAmount(100, 'other', 'USD', 'en-US')).toBe('+$100.00')+ })++ it('leaves amounts that round to zero unsigned', () => {+ expect(formatSignedAmount(0, 'debit', 'USD', 'en-US')).toBe('$0.00')+ expect(formatSignedAmount(0.004, 'debit', 'USD', 'en-US')).toBe('$0.00')+ expect(formatSignedAmount(0, 'credit', 'USD', 'en-US')).toBe('$0.00')+ // Precision follows the currency: 0.4 JPY rounds to zero.+ expect(normalize(formatSignedAmount(0.4, 'debit', 'JPY', 'ja-JP'))).toBe(+ normalize(formatCurrency(0, 'JPY', 'ja-JP')),+ )+ })+})+describe('parseAmountInput', () => {it('reads comma decimals under a dot_comma locale', () => {expect(parseAmountInput('1,50', 'de-DE')).toBe(1.5)diff --git a/frontend/src/lib/format.ts b/frontend/src/lib/format.tsindex f526a7d4..5ed00f80 100644--- a/frontend/src/lib/format.ts+++ b/frontend/src/lib/format.ts@@ -195,6 +195,25 @@ export function formatCurrency(return formatter.format(Math.round(value * factor) === 0 ? 0 : value)}+/**+ * Format a transaction amount with its direction: `+` for a credit, `-` for+ * a debit, in front of the magnitude. Amounts that round to zero at the+ * currency's precision carry no sign, so a zero debit never reads "-$0.00".+ */+export function formatSignedAmount(+ amount: number,+ type: string,+ currency = 'USD',+ locale = 'en-US',+): string {+ const magnitude = Math.abs(amount)+ const formatted = formatCurrency(magnitude, currency, locale)+ const factor = 10 ** (currencyFormatter(currency, locale).resolvedOptions().maximumFractionDigits ?? 2)+ if (Math.round(magnitude * factor) === 0) return formatted+ // Same rule as the backend rule engine: only a debit is negative.+ return `${type === 'debit' ? '-' : '+'}${formatted}`+}+/*** Separators the display locale writes numbers with, derived from Intl so* they always agree with what `formatCurrency` renders.diff --git a/frontend/src/locales/cs.json b/frontend/src/locales/cs.jsonindex 0810706b..2f0713ba 100644--- a/frontend/src/locales/cs.json+++ b/frontend/src/locales/cs.json@@ -1635,6 +1635,7 @@"addCondition": "Přidat podmínku","addGroup": "Přidat skupinu","addGroupHint": "Skupina spojuje své podmínky pomocí A nebo NEBO",+ "amountSignHint": "Částky mají znaménko: příjmy jsou kladné, výdaje záporné.","group": "Skupina","removeGroup": "Odebrat skupinu","blankConditionValue": "Každá podmínka potřebuje hodnotu. Prázdná by odpovídala každé transakci.",diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.jsonindex 013dcbbd..5faf1cb1 100644--- a/frontend/src/locales/de.json+++ b/frontend/src/locales/de.json@@ -1528,6 +1528,7 @@"addCondition": "Bedingung hinzufügen","addGroup": "Gruppe hinzufügen","addGroupHint": "Eine Gruppe verknüpft ihre eigenen Bedingungen mit UND oder ODER",+ "amountSignHint": "Beträge sind vorzeichenbehaftet: Einnahmen sind positiv, Ausgaben negativ.","group": "Gruppe","removeGroup": "Gruppe entfernen","blankConditionValue": "Jede Bedingung benötigt einen Wert. Eine leere Bedingung würde auf alle Transaktionen zutreffen.",diff --git a/frontend/src/locales/el.json b/frontend/src/locales/el.jsonindex 024f1553..ea2023f2 100644--- a/frontend/src/locales/el.json+++ b/frontend/src/locales/el.json@@ -1526,6 +1526,7 @@"addCondition": "Προσθήκη συνθήκης","addGroup": "Προσθήκη ομάδας","addGroupHint": "Μια ομάδα ενώνει τις δικές της συνθήκες με ΚΑΙ ή Ή",+ "amountSignHint": "Τα ποσά έχουν πρόσημο: τα έσοδα είναι θετικά, τα έξοδα αρνητικά.","group": "Ομάδα","removeGroup": "Αφαίρεση ομάδας","blankConditionValue": "Κάθε συνθήκη χρειάζεται μια τιμή. Μια κενή συνθήκη θα ταίριαζε με κάθε συναλλαγή.",diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.jsonindex 6566144b..251b9309 100644--- a/frontend/src/locales/en.json+++ b/frontend/src/locales/en.json@@ -1527,6 +1527,7 @@"addCondition": "Add condition","addGroup": "Add group","addGroupHint": "A group joins its own conditions with AND or OR",+ "amountSignHint": "Amounts are signed: income is positive, expenses are negative.","group": "Group","removeGroup": "Remove group","blankConditionValue": "Every condition needs a value. A blank one would match every transaction.",diff --git a/frontend/src/locales/es.json b/frontend/src/locales/es.jsonindex 1ad5c72c..529df9f7 100644--- a/frontend/src/locales/es.json+++ b/frontend/src/locales/es.json@@ -1531,6 +1531,7 @@"addCondition": "Agregar condición","addGroup": "Agregar grupo","addGroupHint": "Un grupo une sus propias condiciones con Y u O",+ "amountSignHint": "Los importes tienen signo: los ingresos son positivos, los gastos, negativos.","group": "Grupo","removeGroup": "Eliminar grupo","blankConditionValue": "Cada condición necesita un valor. Una condición en blanco coincidiría con todas las transacciones.",diff --git a/frontend/src/locales/fr.json b/frontend/src/locales/fr.jsonindex e76b5fbc..4d8622b8 100644--- a/frontend/src/locales/fr.json+++ b/frontend/src/locales/fr.json@@ -1531,6 +1531,7 @@"addCondition": "Ajouter une condition","addGroup": "Ajouter un groupe","addGroupHint": "Un groupe combine ses propres conditions avec ET ou OU",+ "amountSignHint": "Les montants sont signés : les revenus sont positifs, les dépenses négatives.","group": "Groupe","removeGroup": "Supprimer le groupe","blankConditionValue": "Chaque condition nécessite une valeur. Une condition vide correspondrait à toutes les transactions.",diff --git a/frontend/src/locales/hi.json b/frontend/src/locales/hi.jsonindex ad6c235a..0d9f0c28 100644--- a/frontend/src/locales/hi.json+++ b/frontend/src/locales/hi.json@@ -1526,6 +1526,7 @@"addCondition": "शर्त जोड़ें","addGroup": "समूह जोड़ें","addGroupHint": "एक समूह अपनी शर्तों को AND या OR से जोड़ता है",+ "amountSignHint": "राशियों में चिह्न होता है: आय धनात्मक और खर्च ऋणात्मक।","group": "समूह","removeGroup": "समूह हटाएँ","blankConditionValue": "हर शर्त के लिए एक मान चाहिए। खाली मान हर लेन-देन से मेल खाएगा।",diff --git a/frontend/src/locales/hu.json b/frontend/src/locales/hu.jsonindex 6383819f..0cf81bb7 100644--- a/frontend/src/locales/hu.json+++ b/frontend/src/locales/hu.json@@ -1527,6 +1527,7 @@"addCondition": "Feltétel hozzáadása","addGroup": "Csoport hozzáadása","addGroupHint": "A csoport a saját feltételeit ÉS vagy VAGY kapcsolattal köti össze",+ "amountSignHint": "Az összegek előjelesek: a bevételek pozitívak, a kiadások negatívak.","group": "Csoport","removeGroup": "Csoport eltávolítása","blankConditionValue": "Minden feltételhez meg kell adni egy értéket. Egy üres feltétel minden tranzakcióra illeszkedne.",diff --git a/frontend/src/locales/it.json b/frontend/src/locales/it.jsonindex 0f43da28..1d2945a5 100644--- a/frontend/src/locales/it.json+++ b/frontend/src/locales/it.json@@ -1531,6 +1531,7 @@"addCondition": "Aggiungi condizione","addGroup": "Aggiungi gruppo","addGroupHint": "Un gruppo unisce le proprie condizioni con E oppure O",+ "amountSignHint": "Gli importi hanno un segno: i guadagni sono positivi, le spese negative.","group": "Gruppo","removeGroup": "Rimuovi gruppo","blankConditionValue": "Ogni condizione richiede un valore. Una condizione vuota corrisponderebbe a tutte le transazioni.",diff --git a/frontend/src/locales/ja.json b/frontend/src/locales/ja.jsonindex 84795257..e60d407d 100644--- a/frontend/src/locales/ja.json+++ b/frontend/src/locales/ja.json@@ -1526,6 +1526,7 @@"addCondition": "条件を追加","addGroup": "グループを追加","addGroupHint": "グループは内部の条件をANDまたはORで結合します",+ "amountSignHint": "金額には符号があります。収入は正、支出は負です。","group": "グループ","removeGroup": "グループを削除","blankConditionValue": "すべての条件に値が必要です。空欄のままだとすべての取引に一致してしまいます。",diff --git a/frontend/src/locales/nl.json b/frontend/src/locales/nl.jsonindex cf64670d..2e561f23 100644--- a/frontend/src/locales/nl.json+++ b/frontend/src/locales/nl.json@@ -1527,6 +1527,7 @@"addCondition": "Voorwaarde toevoegen","addGroup": "Groep toevoegen","addGroupHint": "Een groep voegt zijn eigen voorwaarden samen met AND of OR",+ "amountSignHint": "Bedragen hebben een teken: inkomsten zijn positief, uitgaven negatief.","group": "Groep","removeGroup": "Groep verwijderen","blankConditionValue": "Elke voorwaarde heeft een waarde nodig. Een blanco exemplaar zou overeenkomen met elke transactie.",diff --git a/frontend/src/locales/pl.json b/frontend/src/locales/pl.jsonindex 7b6e5503..ed41523c 100644--- a/frontend/src/locales/pl.json+++ b/frontend/src/locales/pl.json@@ -1598,6 +1598,7 @@"addCondition": "Dodaj warunek","addGroup": "Dodaj grupę","addGroupHint": "Grupa łączy własne warunki operatorem I lub LUB",+ "amountSignHint": "Kwoty mają znak: przychody są dodatnie, wydatki ujemne.","group": "Grupa","removeGroup": "Usuń grupę","blankConditionValue": "Każdy warunek wymaga wartości. Pusty warunek pasowałby do wszystkich transakcji.",diff --git a/frontend/src/locales/pt-BR.json b/frontend/src/locales/pt-BR.jsonindex f2006076..896c2413 100644--- a/frontend/src/locales/pt-BR.json+++ b/frontend/src/locales/pt-BR.json@@ -1531,6 +1531,7 @@"addCondition": "Adicionar condição","addGroup": "Adicionar grupo","addGroupHint": "Um grupo junta suas próprias condições com E ou OU",+ "amountSignHint": "Os valores têm sinal: receitas são positivas, despesas são negativas.","group": "Grupo","removeGroup": "Remover grupo","blankConditionValue": "Toda condição precisa de um valor. Uma condição em branco corresponderia a todas as transações.",diff --git a/frontend/src/locales/pt-PT.json b/frontend/src/locales/pt-PT.jsonindex 2a412fd7..fc48ebb0 100644--- a/frontend/src/locales/pt-PT.json+++ b/frontend/src/locales/pt-PT.json@@ -1531,6 +1531,7 @@"addCondition": "Adicionar condição","addGroup": "Adicionar grupo","addGroupHint": "Um grupo junta as suas próprias condições com E ou OU",+ "amountSignHint": "Os valores têm sinal: rendimentos são positivos, despesas são negativas.","group": "Grupo","removeGroup": "Remover grupo","blankConditionValue": "Todas as condições precisam de um valor. Uma condição em branco corresponderia a todas as transações.",diff --git a/frontend/src/locales/ru.json b/frontend/src/locales/ru.jsonindex 956a2acf..b8158de8 100644--- a/frontend/src/locales/ru.json+++ b/frontend/src/locales/ru.json@@ -1544,6 +1544,7 @@"addCondition": "Добавить условие","addGroup": "Добавить группу","addGroupHint": "Группа объединяет свои условия оператором И или ИЛИ",+ "amountSignHint": "Суммы со знаком: доходы положительные, расходы отрицательные.","group": "Группа","removeGroup": "Удалить группу","blankConditionValue": "Каждому условию нужно значение. Пустое условие совпадёт со всеми транзакциями.",diff --git a/frontend/src/locales/sk.json b/frontend/src/locales/sk.jsonindex 428923a2..85e69441 100644--- a/frontend/src/locales/sk.json+++ b/frontend/src/locales/sk.json@@ -1619,6 +1619,7 @@"addCondition": "Pridať podmienku","addGroup": "Pridať skupinu","addGroupHint": "Skupina spája svoje podmienky pomocou A alebo ALEBO",+ "amountSignHint": "Sumy majú znamienko: príjmy sú kladné, výdaje záporné.","group": "Skupina","removeGroup": "Odstrániť skupinu","blankConditionValue": "Každá podmienka potrebuje hodnotu. Prázdna by zodpovedala každej transakcii.",diff --git a/frontend/src/locales/uk.json b/frontend/src/locales/uk.jsonindex 3bf59088..c80b1ab5 100644--- a/frontend/src/locales/uk.json+++ b/frontend/src/locales/uk.json@@ -1544,6 +1544,7 @@"addCondition": "Додати умову","addGroup": "Додати групу","addGroupHint": "Група об'єднує власні умови оператором І або АБО",+ "amountSignHint": "Суми зі знаком: доходи додатні, витрати від'ємні.","group": "Група","removeGroup": "Видалити групу","blankConditionValue": "Кожна умова потребує значення. Порожня умова збігатиметься з усіма транзакціями.",