Updated Transaction Rules (markdown)

Herculino Trotta
2025-09-07 21:35:29 -03:00
parent aeaa045058
commit 03861eb7db

@@ -165,8 +165,9 @@ The filter uses Django's ORM filter syntax (e.g., `account__id=5`, `description_
The returned object has the following properties:
* `.sum`: The sum of the `amount` for the filtered transactions.
* `.balance`: The absolute balance (total income - total expenses).
* `.balance`: The absolute balance (total income - total expenses), always a positive number.
* `.raw_balance`: The raw balance (can be negative).
* `.exclude(filter)`: Exclude one or mode results (e.g. `description='Coffee'` will exclude any transaction with the description 'Coffee' from the original filter),
Example: `transactions(account_id=account_id, date__month=date.month).sum` returns the sum of all transactions in the same account and month as the triggering transaction.