mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-19 23:31:27 +02:00
Updated Transaction Rules (markdown)
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user