diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsx index c37aad5148d49b9842294575fa04ca2b76637afd..225ec864bbde822de83fc4c80d6ebb8a2babce85 100644 --- a/packages/desktop-client/src/components/accounts/Account.jsx +++ b/packages/desktop-client/src/components/accounts/Account.jsx @@ -1093,11 +1093,17 @@ class AccountInternal extends PureComponent { value: ruleTransaction.payee, type: 'id', }; + const amountCondition = { + field: 'amount', + op: 'isapprox', + value: ruleTransaction.amount, + type: 'number', + }; const rule = { stage: null, conditionsOp: 'and', - conditions: [payeeCondition], + conditions: [payeeCondition, amountCondition], actions: [ ...(childTransactions.length === 0 ? [ diff --git a/upcoming-release-notes/2786.md b/upcoming-release-notes/2786.md new file mode 100644 index 0000000000000000000000000000000000000000..9540bbd13753cc030721e0d0bab3469b104e7f78 --- /dev/null +++ b/upcoming-release-notes/2786.md @@ -0,0 +1,6 @@ +--- +category: Enhancements +authors: [jfdoming] +--- + +Match on `amount` when creating a rule from a transaction