A local-first personal finance app
Match on `amount` when creating a rule from a transaction (#2786)
Julian Dominguez-Schatzb803731bc52d
diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsxindex c37aad5148..225ec864bb 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.mdnew file mode 100644index 0000000000..9540bbd137--- /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